2022-02-21 15:26:05 +00:00
|
|
|
name: Build Application and Make Release
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build_release:
|
|
|
|
name: Build Release
|
|
|
|
uses: ./.github/workflows/build.yml
|
|
|
|
with:
|
|
|
|
build_type: Release
|
2022-11-09 18:56:38 +00:00
|
|
|
is_qt_cached: false
|
2022-07-13 21:42:25 +01:00
|
|
|
secrets:
|
|
|
|
SPARKLE_ED25519_KEY: ${{ secrets.SPARKLE_ED25519_KEY }}
|
2023-02-14 10:10:29 +00:00
|
|
|
WINDOWS_CODESIGN_CERT: ${{ secrets.WINDOWS_CODESIGN_CERT }}
|
|
|
|
WINDOWS_CODESIGN_PASSWORD: ${{ secrets.WINDOWS_CODESIGN_PASSWORD }}
|
|
|
|
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
2022-02-21 15:26:05 +00:00
|
|
|
|
|
|
|
create_release:
|
|
|
|
needs: build_release
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
outputs:
|
|
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
|
|
steps:
|
2022-03-23 10:36:28 +00:00
|
|
|
- name: Checkout
|
2022-03-23 12:33:18 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-03-23 10:36:28 +00:00
|
|
|
with:
|
|
|
|
submodules: 'true'
|
2022-10-18 09:13:44 +01:00
|
|
|
path: 'PrismLauncher-source'
|
2022-02-21 15:26:05 +00:00
|
|
|
- name: Download artifacts
|
2022-03-23 12:33:18 +00:00
|
|
|
uses: actions/download-artifact@v3
|
2022-02-21 15:26:05 +00:00
|
|
|
- name: Grab and store version
|
|
|
|
run: |
|
|
|
|
tag_name=$(echo ${{ github.ref }} | grep -oE "[^/]+$")
|
|
|
|
echo "VERSION=$tag_name" >> $GITHUB_ENV
|
|
|
|
- name: Package artifacts properly
|
|
|
|
run: |
|
2022-10-18 09:13:44 +01:00
|
|
|
mv ${{ github.workspace }}/PrismLauncher-source PrismLauncher-${{ env.VERSION }}
|
|
|
|
mv PrismLauncher-Linux-Qt6-Portable*/PrismLauncher-portable.tar.gz PrismLauncher-Linux-Qt6-Portable-${{ env.VERSION }}.tar.gz
|
|
|
|
mv PrismLauncher-Linux-Qt6*/PrismLauncher.tar.gz PrismLauncher-Linux-Qt6-${{ env.VERSION }}.tar.gz
|
|
|
|
mv PrismLauncher-Linux-Portable*/PrismLauncher-portable.tar.gz PrismLauncher-Linux-Portable-${{ env.VERSION }}.tar.gz
|
|
|
|
mv PrismLauncher-Linux*/PrismLauncher.tar.gz PrismLauncher-Linux-${{ env.VERSION }}.tar.gz
|
|
|
|
mv PrismLauncher-*.AppImage/PrismLauncher-*.AppImage PrismLauncher-Linux-${{ env.VERSION }}-x86_64.AppImage
|
|
|
|
mv PrismLauncher-macOS-Legacy*/PrismLauncher.tar.gz PrismLauncher-macOS-Legacy-${{ env.VERSION }}.tar.gz
|
|
|
|
mv PrismLauncher-macOS*/PrismLauncher.tar.gz PrismLauncher-macOS-${{ env.VERSION }}.tar.gz
|
2022-02-21 15:26:05 +00:00
|
|
|
|
2022-10-18 09:13:44 +01:00
|
|
|
tar -czf PrismLauncher-${{ env.VERSION }}.tar.gz PrismLauncher-${{ env.VERSION }}
|
2022-03-23 10:36:28 +00:00
|
|
|
|
2022-11-26 07:41:41 +00:00
|
|
|
for d in PrismLauncher-Windows-MSVC*; do
|
2022-03-23 12:33:18 +00:00
|
|
|
cd "${d}" || continue
|
2022-07-09 07:59:43 +01:00
|
|
|
LEGACY="$(echo -n ${d} | grep -o Legacy || true)"
|
2022-11-26 07:41:41 +00:00
|
|
|
ARM64="$(echo -n ${d} | grep -o arm64 || true)"
|
2022-05-20 22:09:26 +01:00
|
|
|
INST="$(echo -n ${d} | grep -o Setup || true)"
|
2022-04-17 23:41:43 +01:00
|
|
|
PORT="$(echo -n ${d} | grep -o Portable || true)"
|
2022-11-26 07:41:41 +00:00
|
|
|
NAME="PrismLauncher-Windows-MSVC"
|
|
|
|
test -z "${LEGACY}" || NAME="${NAME}-Legacy"
|
|
|
|
test -z "${ARM64}" || NAME="${NAME}-arm64"
|
|
|
|
test -z "${PORT}" || NAME="${NAME}-Portable"
|
|
|
|
test -z "${INST}" || mv PrismLauncher-*.exe ../${NAME}-Setup-${{ env.VERSION }}.exe
|
|
|
|
test -n "${INST}" || zip -r -9 "../${NAME}-${{ env.VERSION }}.zip" *
|
|
|
|
cd ..
|
|
|
|
done
|
|
|
|
|
|
|
|
for d in PrismLauncher-Windows-MinGW-w64*; do
|
|
|
|
cd "${d}" || continue
|
|
|
|
INST="$(echo -n ${d} | grep -o Setup || true)"
|
|
|
|
PORT="$(echo -n ${d} | grep -o Portable || true)"
|
|
|
|
NAME="PrismLauncher-Windows-MinGW-w64"
|
2022-04-17 23:41:43 +01:00
|
|
|
test -z "${PORT}" || NAME="${NAME}-Portable"
|
2022-10-18 09:13:44 +01:00
|
|
|
test -z "${INST}" || mv PrismLauncher-*.exe ../${NAME}-Setup-${{ env.VERSION }}.exe
|
2022-05-20 22:09:26 +01:00
|
|
|
test -n "${INST}" || zip -r -9 "../${NAME}-${{ env.VERSION }}.zip" *
|
2022-03-23 12:33:18 +00:00
|
|
|
cd ..
|
|
|
|
done
|
2022-02-21 15:26:05 +00:00
|
|
|
|
2022-03-23 12:33:18 +00:00
|
|
|
- name: Create release
|
|
|
|
id: create_release
|
|
|
|
uses: softprops/action-gh-release@v1
|
2022-03-23 10:36:28 +00:00
|
|
|
env:
|
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
with:
|
2022-03-23 12:33:18 +00:00
|
|
|
tag_name: ${{ github.ref }}
|
2022-10-19 19:21:48 +01:00
|
|
|
name: Prism Launcher ${{ env.VERSION }}
|
2022-03-23 12:33:18 +00:00
|
|
|
draft: true
|
|
|
|
prerelease: false
|
|
|
|
files: |
|
2022-10-18 09:13:44 +01:00
|
|
|
PrismLauncher-Linux-${{ env.VERSION }}.tar.gz
|
|
|
|
PrismLauncher-Linux-Portable-${{ env.VERSION }}.tar.gz
|
|
|
|
PrismLauncher-Linux-${{ env.VERSION }}-x86_64.AppImage
|
|
|
|
PrismLauncher-Linux-Qt6-${{ env.VERSION }}.tar.gz
|
|
|
|
PrismLauncher-Linux-Qt6-Portable-${{ env.VERSION }}.tar.gz
|
2022-11-26 07:41:41 +00:00
|
|
|
PrismLauncher-Windows-MinGW-w64-${{ env.VERSION }}.zip
|
|
|
|
PrismLauncher-Windows-MinGW-w64-Portable-${{ env.VERSION }}.zip
|
|
|
|
PrismLauncher-Windows-MinGW-w64-Setup-${{ env.VERSION }}.exe
|
2022-11-01 19:59:37 +00:00
|
|
|
PrismLauncher-Windows-MSVC-Legacy-${{ env.VERSION }}.zip
|
|
|
|
PrismLauncher-Windows-MSVC-Legacy-Portable-${{ env.VERSION }}.zip
|
|
|
|
PrismLauncher-Windows-MSVC-Legacy-Setup-${{ env.VERSION }}.exe
|
2022-11-26 07:41:41 +00:00
|
|
|
PrismLauncher-Windows-MSVC-arm64-${{ env.VERSION }}.zip
|
|
|
|
PrismLauncher-Windows-MSVC-arm64-Portable-${{ env.VERSION }}.zip
|
|
|
|
PrismLauncher-Windows-MSVC-arm64-Setup-${{ env.VERSION }}.exe
|
2022-11-01 19:59:37 +00:00
|
|
|
PrismLauncher-Windows-MSVC-${{ env.VERSION }}.zip
|
|
|
|
PrismLauncher-Windows-MSVC-Portable-${{ env.VERSION }}.zip
|
|
|
|
PrismLauncher-Windows-MSVC-Setup-${{ env.VERSION }}.exe
|
2022-10-18 09:13:44 +01:00
|
|
|
PrismLauncher-macOS-${{ env.VERSION }}.tar.gz
|
|
|
|
PrismLauncher-macOS-Legacy-${{ env.VERSION }}.tar.gz
|
|
|
|
PrismLauncher-${{ env.VERSION }}.tar.gz
|