You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #!/pwsh
- #
- # Create package via QtIFW command line tools
- #
- # Author: donkey <anjingyu_ws@foxmail.com>
-
- $PSScriptRoot = Split-Path $MyInvocation.MyCommand.Path -Parent
- $QtIfwBinCreator = ""
-
- if (Test-Path env:QTIFWDIR)
- {
- $QtIfwBinCreator = Join-Path "$env:QTIFWDIR" "bin" "binarycreator.exe"
-
- if (-Not (Test-Path "$QtIfwBinCreator")) {
- Write-Host "The binarycreator is not existent: $QtIfwBinCreator"
- exit -1
- }
- }
- elseif ($null -eq (Get-Command "binarycreator" -ErrorAction SilentlyContinue))
- {
- Write-Host "Failed to find binarycreator, please install QtIFW firstly."
- exit -1
- }
- else
- {
- $QtIfwBinCreator = "binarycreator.exe"
- }
-
-
- & $QtIfwBinCreator --offline-only -c "$PSScriptRoot\config\config.xml" -p "$PSScriptRoot\packages" "$PSScriptRoot\installer.exe"
|