Skip to content

Commit

Permalink
chore: init
Browse files Browse the repository at this point in the history
  • Loading branch information
ThunderGemios10 committed Aug 4, 2024
0 parents commit e2733f9
Show file tree
Hide file tree
Showing 9 changed files with 2,127 additions and 0 deletions.
73 changes: 73 additions & 0 deletions .github/workflows/build.yml
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'
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions README.md
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
```
Loading

0 comments on commit e2733f9

Please sign in to comment.