-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit e2733f9
Showing
9 changed files
with
2,127 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Build DEB | ||
|
||
on: workflow_dispatch | ||
|
||
permissions: | ||
contents: write | ||
|
||
env: | ||
USER_ID: ${{ vars.GPG_USER_ID }} | ||
LAUNCHER_NAME: 'moe.launcher.an-anime-game-launcher' | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Setup build environment | ||
run: | | ||
sudo apt install debhelper devscripts dput desktop-file-utils | ||
- name: Import GPG Key | ||
uses: crazy-max/ghaction-import-gpg@v1 | ||
env: | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} | ||
|
||
- name: Checkout repo | ||
uses: actions/checkout@v4 | ||
with: | ||
path: "REPO" | ||
|
||
- name: Checkout AAGL repo | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: an-anime-team/an-anime-game-launcher | ||
path: "AAT-REPO" | ||
|
||
- name: Fetch latest binary | ||
run: | | ||
wget ${{ env.BINARY_URL }} -O ${{ env.LAUNCHER_NAME }} | ||
mkdir -p REPO/usr/bin | ||
mv ${{ env.LAUNCHER_NAME }} REPO/usr/bin | ||
env: | ||
BINARY_URL: https://github.com/an-anime-team/an-anime-game-launcher/releases/latest/download/anime-game-launcher | ||
|
||
- name: Fetch metadata | ||
run: | | ||
mkdir -p REPO/usr/share/icons/hicolor/512x512/apps/ | ||
mkdir -p REPO/usr/share/pixmaps/ | ||
cp AAT-REPO/assets/images/icon.png REPO/usr/share/icons/hicolor/512x512/apps/${{ env.LAUNCHER_NAME }}.png | ||
cp AAT-REPO/assets/images/icon.png REPO/usr/share/pixmaps/${{ env.LAUNCHER_NAME }}.png | ||
desktop-file-install --dir=REPO/usr/share/applications --set-key=Exec --set-value=${{ env.LAUNCHER_NAME }} --set-key=Icon --set-value=${{ env.LAUNCHER_NAME }} AAT-REPO/assets/anime-game-launcher.desktop | ||
- name: Build Debian package | ||
run: | | ||
mkdir PKG_SOURCE | ||
cp -Rf REPO/usr REPO/debian PKG_SOURCE | ||
cd PKG_SOURCE | ||
dpkg-buildpackage -k${{ env.USER_ID }} | ||
debuild -S -k${{ env.USER_ID }} | ||
- name: Deploy to GitHub | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
tag_name: aagl | ||
files: '*.deb' | ||
|
||
- name: Deploy to Launchpad | ||
run: | | ||
dput ppa:${{ env.PPA }} *_source.changes | ||
env: | ||
PPA: 'thundergemios10/an-anime-game-launcher' |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
|
||
# An Anime Game Launcher for Ubuntu | ||
|
||
## Installation | ||
|
||
### Launchpad PPA (Recommended) | ||
To install the launcher via the unofficial PPA, first add the PPA to your system's Software Sources. | ||
```bash | ||
sudo add-apt-repository ppa:thundergemios10/an-anime-game-launcher | ||
sudo apt update | ||
``` | ||
|
||
Then install the launcher with: | ||
```bash | ||
sudo apt install an-anime-game-launcher | ||
``` | ||
|
||
### Manual | ||
To install the launcher via terminal run: | ||
```bash | ||
sudo dpkg -i an-anime-game-launcher_3.11.0_all.deb | ||
``` | ||
|
||
## Uninstall | ||
|
||
To uninstall the launcher via terminal run: | ||
``` | ||
sudo apt remove an-anime-game-launcher | ||
``` | ||
|
||
If you wish to remove the Launchpad PPA, you can run: | ||
```bash | ||
sudo add-apt-repository --remove ppa:thundergemios10/an-anime-game-launcher | ||
sudo apt update | ||
``` |
Oops, something went wrong.