Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
zetaloop authored Sep 3, 2024
1 parent caaf329 commit 19f3331
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ jobs:
build:
strategy:
matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
os: [macos-latest]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}

steps:
Expand All @@ -21,7 +20,8 @@ jobs:
apt update
apt install -y clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev libstdc++-12-dev
apt install -y libappindicator3-dev
# elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
elif [[ "${{ matrix.os }}" == "macos-latest" ]]; then
brew install create-dmg
elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then
choco install -y zip
fi
Expand Down Expand Up @@ -53,7 +53,13 @@ jobs:
pushd build/macos/Build/Products/Release
mkdir dmg_temp
cp -R keyviz.app dmg_temp/
hdiutil create -volname Keyviz -srcfolder dmg_temp -ov -format UDZO keyviz-release-macos.dmg
# hdiutil create -volname Keyviz -srcfolder dmg_temp -ov -format UDZO keyviz-release-macos.dmg
create-dmg \
--volname "Keyviz" \
--window-size 600 400 \
--icon "keyviz.app" 150 200 \
--app-drop-link 450 200 \
keyviz-release-macos.dmg dmg_temp
mv keyviz-release-macos.dmg ../../../../
popd
elif [[ "${{ matrix.os }}" == "windows-latest" ]]; then
Expand Down

0 comments on commit 19f3331

Please sign in to comment.