Skip to content

Commit

Permalink
Separate experimental and stable builds for Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
cube committed Jul 15, 2024
1 parent 2459451 commit 6398fe0
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
GITVERSION_PATCH: ${{ steps.gitversion.outputs.GITVERSION_PATCH }}
MACOS_MAJORMINORPATCH: ${{ steps.output1.outputs.MACOS_MAJORMINORPATCH }}
DEBIAN_PKGVERSION: ${{ steps.output1.outputs.DEBIAN_PKGVERSION }}
FLAVOR: ${{ steps.gitversion.outputs.FLAVOR }}
steps:
- name: Checkout project
uses: actions/checkout@v4
Expand Down Expand Up @@ -54,6 +55,10 @@ jobs:
else
echo "MACOS_MAJORMINORPATCH=${GitVersion_MajorMinorPatch}" >> "$GITHUB_OUTPUT"
fi
if [ "$GITHUB_REF_NAME" != "master" ]
then
echo "FLAVOR=_${GITHUB_REF_NAME}" >> "$GITHUB_OUTPUT"
fi
build:
needs: [semver]
Expand Down Expand Up @@ -135,7 +140,7 @@ jobs:
--app-version "${{ needs.semver.outputs.DEBIAN_PKGVERSION }}" \
--copyright Copyright \
--description "OoliteStarter ${{ needs.semver.outputs.GITVERSION_SEMVER }}" \
--name "OoliteStarter" \
--name "OoliteStarter${{ needs.semver.outputs.FLAVOR }}" \
--dest target/appimage \
--temp target/oolite-starter-tmp \
--vendor "OoliteProject" \
Expand All @@ -150,7 +155,7 @@ jobs:

- name: Tweak AppImage
run: |
cp -v "oolitestarter/src/jpackage/resources-linux/OoliteStarter.desktop" "target/appimage/OoliteStarter/lib/oolitestarter-OoliteStarter.desktop"
cp -v "oolitestarter/src/jpackage/resources-linux/OoliteStarter.desktop" "target/appimage/OoliteStarter${{ needs.semver.outputs.FLAVOR }}/lib/oolitestarter-OoliteStarter.desktop"
# cp -v "oolitestarter/src/main/resources/images/OoliteStarter_Splashscreen_640x360.png" "target/appimage/OoliteStarter/lib/app/splash.png"

- name: Check status 2
Expand All @@ -164,8 +169,8 @@ jobs:
run: |
jpackage \
--verbose \
--app-image target/appimage/OoliteStarter \
--name "OoliteStarter" \
--app-image target/appimage/OoliteStarter${{ needs.semver.outputs.FLAVOR }} \
--name "OoliteStarter${{ needs.semver.outputs.FLAVOR }}" \
--app-version "${{ needs.semver.outputs.DEBIAN_PKGVERSION }}" \
--dest target \
--license-file oolitestarter/LICENSE \
Expand Down

0 comments on commit 6398fe0

Please sign in to comment.