Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
jdpurcell committed Jan 7, 2025
1 parent 0d406cf commit 498f5bc
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions ci/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ if ($IsWindows) {
make
}

Set-Location "build"
$appName = "QtHelloWorld"

if ($IsWindows) {
Set-Location "build"

if ($env:buildArch -eq 'Arm64') {
$winDeployQt = "$env:QT_HOST_PATH\bin\windeployqt"
$argQmake = "--qmake=$env:QT_ROOT_DIR\bin\qmake.bat"
Expand All @@ -46,6 +47,8 @@ if ($IsWindows) {
}
& $winDeployQt $argQmake --no-compiler-runtime --no-translations --no-system-d3d-compiler --no-system-dxc-compiler --no-opengl-sw "$appName.exe"
} elseif ($IsMacOS) {
Set-Location "build"

macdeployqt "$appName.app"

codesign --sign "-" --deep --force "$appName.app"
Expand All @@ -58,8 +61,12 @@ if ($IsWindows) {
sudo apt update
sudo apt install libfuse2

New-Item -ItemType Directory -Name "AppDir"
Get-ChildItem -Exclude "AppDir" | Move-Item -Destination "AppDir"
New-Item -ItemType Directory -Name "build\AppDir"
make install INSTALL_ROOT="build\AppDir"

Set-Location "build"

Remove-Item *

$archName = switch ($env:buildArch) {
'X64' { 'x86_64' }
Expand Down

0 comments on commit 498f5bc

Please sign in to comment.