obsproject / obs-plugintemplate

GNU General Public License v2.0
285 stars 133 forks source link

can't use it don't know why #104

Closed nirvanaruns closed 8 months ago

nirvanaruns commented 9 months ago

Operating System Info

Windows 10

Other OS

No response

OBS Studio Version

30.0.0

OBS Studio Version (Other)

No response

OBS Studio Log URL

no log

OBS Studio Crash Log URL

No response

Expected Behavior

...

Current Behavior

i can't use this.. i don't know why . I'm trying to test it and i get this error in vsc:

PS C:\github_repo\obsplugindiega> ..github\scripts\Package-Windows.ps1 => Check Windows build requirements

Found dependency cmake as C:\Program Files\CMake\bin\cmake.exe Installing package innosetup Se encontró un paquete existente ya instalado. Intentando actualizar el paquete instalado... No se ha encontrado ninguna actualización disponible. No hay versiones más recientes del paquete disponibles en las fuentes configuradas. => Archiving obs-plugintemplate... Write-Error: C:\github_repo\obsplugindiega.github\scripts\Package-Windows.ps1:96:1 Line | 96 | Package | ~~~ | The argument is null or empty. Provide an argument that is not null or empty, and then try the command again.

and i'm using the github code :

[CmdletBinding()] param( [ValidateSet('x64')] [string] $Target = 'x64', [ValidateSet('Debug', 'RelWithDebInfo', 'Release', 'MinSizeRel')] [string] $Configuration = 'RelWithDebInfo', [switch] $BuildInstaller, [switch] $SkipDeps )

$ErrorActionPreference = 'Stop'

if ( $DebugPreference -eq 'Continue' ) { $VerbosePreference = 'Continue' $InformationPreference = 'Continue' }

if ( ! ( [System.Environment]::Is64BitOperatingSystem ) ) { throw "Packaging script requires a 64-bit system to build and run." }

if ( $PSVersionTable.PSVersion -lt '7.0.0' ) { Write-Warning 'The packaging script requires PowerShell Core 7. Install or upgrade your PowerShell version: https://aka.ms/pscore6' exit 2 }

function Package { trap { Pop-Location -Stack BuildTemp -ErrorAction 'SilentlyContinue' Write-Error $_ Log-Group exit 2 }

$ScriptHome = $PSScriptRoot
$ProjectRoot = Resolve-Path -Path "$PSScriptRoot/../.."
$BuildSpecFile = "${ProjectRoot}/buildspec.json"

$UtilityFunctions = Get-ChildItem -Path $PSScriptRoot/utils.pwsh/*.ps1 -Recurse

foreach( $Utility in $UtilityFunctions ) {
    Write-Debug "Loading $($Utility.FullName)"
    . $Utility.FullName
}

$BuildSpec = Get-Content -Path ${BuildSpecFile} -Raw | ConvertFrom-Json
$ProductName = $BuildSpec.name
$ProductVersion = $BuildSpec.version

$OutputName = "${ProductName}-${ProductVersion}-windows-${Target}"

if ( ! $SkipDeps ) {
    Install-BuildDependencies -WingetFile "${ScriptHome}/.Wingetfile"
}

$RemoveArgs = @{
    ErrorAction = 'SilentlyContinue'
    Path = @(
        "${ProjectRoot}/release/${ProductName}-*-windows-*.zip"
        "${ProjectRoot}/release/${ProductName}-*-windows-*.exe"
    )
}

Remove-Item @RemoveArgs

if ( ( $BuildInstaller ) ) {
    Log-Group "Packaging ${ProductName}..."
    $IsccFile = "${ProjectRoot}/build_${Target}/installer-Windows.generated.iss"

    if ( ! ( Test-Path -Path $IsccFile ) ) {
        throw 'InnoSetup install script not found. Run the build script or the CMake build and install procedures first.'
    }

    Log-Information 'Creating InnoSetup installer...'
    Push-Location -Stack BuildTemp
    Ensure-Location -Path "${ProjectRoot}/release"
    Copy-Item -Path ${Configuration} -Destination Package -Recurse
    Invoke-External iscc ${IsccFile} /O"${ProjectRoot}/release" /F"${OutputName}-Installer"
    Remove-Item -Path Package -Recurse
    Pop-Location -Stack BuildTemp
} else {
    Log-Group "Archiving ${ProductName}..."
    $CompressArgs = @{
        Path = (Get-ChildItem -Path "${ProjectRoot}/release/${Configuration}" -Exclude "${OutputName}*.*")
        CompressionLevel = 'Optimal'
        DestinationPath = "${ProjectRoot}/release/${OutputName}.zip"
        Verbose = ($Env:CI -ne $null)
    }

    Compress-Archive -Force @CompressArgs
}
Log-Group

}

Package

what happend? how can i fix this? thanks

Steps to Reproduce

1. 2. 3. ...

Anything else we should know?

No response

PatTheMav commented 9 months ago

Please properly fill out the issue template and use a more informative issue title.

PatTheMav commented 8 months ago

Closing because issue template was not completed properly.