Skip to content

Commit

Permalink
ci: properly clean up directories when generating icons
Browse files Browse the repository at this point in the history
  • Loading branch information
nmlynch94 committed Apr 26, 2024
1 parent 614c296 commit 108780f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ I am in no way affiliated with Jagex and running the launcher through linux is u

### Repo (easiest, automated updates) - If you don't understand the other sections, this below command is the only one you need to run to get the launcher running.
- Open a terminal (konsole, etc)
- Run `curl -fSsL https://raw.githubusercontent.com/nmlynch94/com.jagexlauncher.JagexLauncher/main/install-jagex-launcher-repo.sh | bash`
- Run
```
curl -fSsL https://raw.githubusercontent.com/nmlynch94/com.jagexlauncher.JagexLauncher/main/install-jagex-launcher-repo.sh | bash
```
- The Jagex Launcher will now show in your application menu or you can run with `flatpak run com.jagexlauncher.JagexLauncher`
- NOTE: The first run will take a bit due to the installation script.
- NOTE: The first run will take a bit due to the installation script. You will need to click update and then start the app again.
- To update, simply run `flatpak update` or update in an app store that supports flatpaks

### Release Bundle (no automated updates) - This option will be going away once the repo option is proven to be stable
Expand Down
6 changes: 3 additions & 3 deletions icons/extract_icons.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ python3 "$SCRIPT_DIR"/../jagex-launcher-linux/resources/installer.py
JAGEX_EXE_NAME="JagexLauncher.exe"

wrestool -x --output=icon.ico -t14 "$JAGEX_EXE_NAME"
convert icon.ico 256.png
convert icon.ico icon.png
mkdir -p 256
mv 256-0.png 256/256.png
mv icon-5.png 256/256.png

# Cleanup
ls | grep -v "extract_icons.sh" | xargs -n1 rm
ls -p | grep -v / | grep -v "extract_icons.sh" | xargs -n1 rm
rm -r locales
2 changes: 1 addition & 1 deletion install-jagex-launcher-repo.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/bash
flatpak remote-add --user --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak remote-add --user --if-not-exists JLauncher https://nmlynch94.github.io/com.jagexlauncher.JagexLauncher/JagexLauncher.flatpakrepo
flatpak install -y --user --noninteractive com.jagexlauncher.JagexLauncher
flatpak install -y --user --noninteractive JLauncher com.jagexlauncher.JagexLauncher

0 comments on commit 108780f

Please sign in to comment.