Skip to content

Commit

Permalink
Removing unneeded sources. Installing at runtime instead of using ext…
Browse files Browse the repository at this point in the history
…ra_data since there are no automatic updates. Auto increment the release version and tag the branch with the new version.
  • Loading branch information
nmlynch94 committed Dec 11, 2023
1 parent e3c127a commit d56aa8b
Show file tree
Hide file tree
Showing 13 changed files with 32 additions and 1,813 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4
with:
submodules: true
submodules: true
- name: Get tags
run: git fetch --tags origin
- name: Install dependencies
run: |
sudo apt-get update -y
Expand All @@ -29,9 +31,17 @@ jobs:
chmod +x build.sh
./build.sh
flatpak build-bundle ~/.local/share/flatpak/repo jagex-launcher.flatpak com.jagex.Launcher
- name: Tag this branch with incremented release version
run: |
LAST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
MAJOR=$(echo "$LAST_TAG" | cut -d. -f1)
MINOR=$(echo "$LAST_TAG" | cut -d. -f2)
PATCH=$(echo "$LAST_TAG" | cut -d. -f3)
NEW_VERSION="$MAJOR.$MINOR.$((PATCH+1))"
git tag "$NEW_VERSION"
git push "https://$GITHUB_ACTOR:${{ secrets.ACCESS_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" --follow-tags
git push "https://$GITHUB_ACTOR:${{ secrets.ACCESS_TOKEN }}@github.com/$GITHUB_REPOSITORY.git" --tags
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: jagex-launcher.flatpak
draft: false
files: jagex-launcher.flatpak
21 changes: 3 additions & 18 deletions com.jagex.Launcher.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,6 @@ modules:
dest-filename: wine.tar.xz
url: https://github.com/GloriousEggroll/wine-ge-custom/releases/download/GE-Proton8-24/wine-lutris-GE-Proton8-24-x86_64.tar.xz
sha512: 5a83e6d2281e45ad84444be9db20b6624241ab05891020d153c124c62f9f38c9d024d9e09eb7385cd4152d1939d4b31260d5c26477fb332583414b157db41519
- sources/python3-pyyaml.json
- sources/python3-requests.json
- name: runelite-jar
buildsystem: simple
build-commands:
Expand Down Expand Up @@ -96,39 +94,26 @@ modules:
commands:
- #!/bin/bash
- /app/jre/bin/java -jar /app/hdos-launcher.jar
- name: dxvk
buildsystem: simple
build-commands:
- mkdir -p /app/opt/dxvk
- mv x32 /app/opt/dxvk/
- mv x64 /app/opt/dxvk/
sources:
- type: archive
url: https://github.com/doitsujin/dxvk/releases/download/v2.3/dxvk-2.3.tar.gz
sha256: 8059c06fc84a864122cc572426f780f35921eb4e3678dc337e9fd79ee5a427c0
- name: jagex-launcher
buildsystem: simple
build-commands:
- install apply_extra /app/bin
- install jagex-install /app/bin
- install -Dm644 com.jagex.Launcher.desktop /app/share/applications/com.jagex.Launcher.desktop
- install -Dm644 com.jagex.Launcher.metainfo.xml /app/share/metainfo/com.jagex.Launcher.metainfo.xml
- install -Dm644 512.png /app/share/icons/hicolor/512x512/apps/com.jagex.Launcher.png
- install -Dm644 steamdeck-settings.properties /app/steamdeck-settings.properties
sources:
- type: file
path: jagex-launcher-linux/resources/installer.py
dest-filename: jagex-install
- sources/solidpiece-sources.yaml
- sources/metafile-source.yaml
- type: file
path: scripts/apply_extra.sh
dest-filename: apply_extra
- type: file
path: com.jagex.Launcher.desktop
- type: file
path: com.jagex.Launcher.metainfo.xml
- type: file
path: icons/512/512.png
- type: file
path: jagex-launcher-linux/resources/steamdeck-settings.properties
- name: launch-script
buildsystem: simple
build-commands:
Expand Down
2 changes: 0 additions & 2 deletions scripts/apply_extra.sh

This file was deleted.

Loading

0 comments on commit d56aa8b

Please sign in to comment.