Skip to content
This repository has been archived by the owner on Oct 15, 2024. It is now read-only.

Commit

Permalink
ci: setup app conf
Browse files Browse the repository at this point in the history
  • Loading branch information
wibus-wee committed Aug 3, 2024
1 parent 6d51faa commit 985f5cb
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,21 +33,24 @@ jobs:
# run: |
# brew install graphicsmagick imagemagick

- name: Build for macOS (Universal) Debug
shell: bash
- name: Set up env.APP_CONF to Debug
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
run: |
xcodebuild -project 'InjectGUI.xcodeproj' -scheme 'InjectGUI' -configuration 'Debug' -destination 'platform=macOS' build -derivedDataPath 'build'
- name: Build for macOS (Universal) Release
shell: bash
echo "APP_CONF=Debug" >> $GITHUB_ENV
- name: Set up env.APP_CONF to Release
if: github.event_name == 'release'
run: |
xcodebuild -project 'InjectGUI.xcodeproj' -scheme 'InjectGUI' -configuration 'Release' -destination 'platform=macOS' build -derivedDataPath 'build'
echo "APP_CONF=Release" >> $GITHUB_ENV
- name: Build for macOS (Universal)
shell: bash
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
run: |
xcodebuild -project 'InjectGUI.xcodeproj' -scheme 'InjectGUI' -configuration '${{ env.APP_CONF }}' -destination 'platform=macOS' build -derivedDataPath 'build'
- name: Create DMG
shell: bash
run: |
hdiutil create -volname "InjectGUI" -srcfolder "build/Build/Products/Release/InjectGUI.app" -ov -format UDZO "InjectGUI.dmg"
hdiutil create -volname "InjectGUI" -srcfolder "build/Build/Products/${{ env.APP_BUILD }}/InjectGUI.app" -ov -format UDZO "InjectGUI.dmg"
# - name: Create DMG
# run: |
# npm install --global create-dmg
Expand Down

0 comments on commit 985f5cb

Please sign in to comment.