Skip to content

Commit c00a205

Browse files
authored
Merge pull request #166 from TwintailTeam/master
1.1.14
2 parents f7aff6b + 5a8e317 commit c00a205

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+2389
-1728
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: "publish"
1+
name: "build"
22
on:
33
workflow_dispatch:
44
push:
55
paths:
6-
- '.github/workflows/publish.yml'
6+
- 'build.yml'
77
- 'package.json'
88
- 'src-tauri/**/*'
99
- 'src/**/*'
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: update-aur.yml
1+
name: update-aur-bin.yml
22
on:
33
release:
44
types: [published]
@@ -43,8 +43,10 @@ jobs:
4343
arch=('x86_64')
4444
url="https://github.com/TwintailTeam/TwintailLauncher"
4545
license=('GPL-3.0-only')
46-
depends=('cairo' 'desktop-file-utils' 'gdk-pixbuf2' 'glib2' 'gtk3' 'hicolor-icon-theme' 'pango' 'webkit2gtk-4.1' 'libappindicator-gtk3' 'libayatana-appindicator')
46+
depends=('cairo' 'desktop-file-utils' 'gdk-pixbuf2' 'glib2' 'gtk3' 'hicolor-icon-theme' 'pango' 'webkit2gtk-4.1' 'libappindicator-gtk3' 'libayatana-appindicator' 'mangohud' 'gamemode')
4747
options=('!debug')
48+
provides=("${pkgname}")
49+
conflicts=("twintaillauncher-git" "twintaillauncher")
4850
source=("\${_pkgname}-\${pkgver}.deb::\${url}/releases/download/ttl-v\${pkgver}/twintaillauncher_\${pkgver}_amd64.deb")
4951
sha256sums=('$x86_64_sum')
5052
@@ -54,7 +56,6 @@ jobs:
5456
5557
package() {
5658
install -Dm755 usr/bin/twintaillauncher -t "\$pkgdir/usr/bin"
57-
install -Dm755 usr/lib/twintaillauncher/resources/7zr -t "\$pkgdir/usr/lib/twintaillauncher/resources"
5859
install -Dm755 usr/lib/twintaillauncher/resources/hpatchz -t "\$pkgdir/usr/lib/twintaillauncher/resources"
5960
install -Dm755 usr/lib/twintaillauncher/resources/reaper -t "\$pkgdir/usr/lib/twintaillauncher/resources"
6061
install -Dm644 usr/lib/twintaillauncher/resources/hkrpg_patch.dll -t "\$pkgdir/usr/lib/twintaillauncher/resources"
Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
name: update-aur-stable-src.yml
2+
on:
3+
release:
4+
types: [published]
5+
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: "Version tag (e.g. ttl-v0.6.9)"
9+
required: true
10+
11+
jobs:
12+
update-aur-package:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v3
17+
- name: Set version
18+
run: |
19+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
20+
echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_ENV
21+
else
22+
echo "VERSION=${{ github.event.release.tag_name }}" >> $GITHUB_ENV
23+
fi
24+
- name: Generate PKGBUILD
25+
env:
26+
VERSION: ${{ env.VERSION }}
27+
run: |
28+
echo "VERSION is: $VERSION"
29+
30+
cat > PKGBUILD << EOF
31+
pkgname=twintaillauncher
32+
pkgver=${PKGV}
33+
pkgrel=1
34+
_dirname="TwintailLauncher-ttl-v${pkgver}"
35+
pkgdesc='A multi-platform launcher for your anime games'
36+
arch=('x86_64')
37+
license=('GPL-3.0-only')
38+
url=https://github.com/TwintailTeam/TwintailLauncher
39+
depends=('cairo' 'desktop-file-utils' 'gdk-pixbuf2' 'glib2' 'gtk3' 'hicolor-icon-theme' 'pango' 'webkit2gtk-4.1' 'libappindicator-gtk3' 'libayatana-appindicator' 'mangohud' 'gamemode')
40+
makedepends=('git' 'openssl' 'appmenu-gtk-module' 'libappindicator-gtk3' 'librsvg' 'cargo' 'pnpm' 'nodejs')
41+
provides=("${pkgname}")
42+
conflicts=("twintaillauncher-git" "twintaillauncher-bin")
43+
source=("${pkgname}.tar.gz::${url}/archive/refs/tags/ttl-v${pkgver}.tar.gz")
44+
sha256sums=('SKIP')
45+
options=('!lto' '!debug')
46+
47+
prepare() {
48+
cd $_dirname
49+
pnpm i
50+
}
51+
52+
build() {
53+
cd $_dirname
54+
pnpm build:native --no-bundle
55+
}
56+
57+
package() {
58+
install -Dm644 $_dirname/LICENSE -t $pkgdir/usr/share/licenses/$pkgname
59+
install -Dm755 $_dirname/src-tauri/target/release/resources/hpatchz -t $pkgdir/usr/lib/twintaillauncher/resources/
60+
install -Dm755 $_dirname/src-tauri/target/release/resources/reaper -t $pkgdir/usr/lib/twintaillauncher/resources/
61+
install -Dm644 $_dirname/src-tauri/target/release/resources/hkrpg_patch.dll -t $pkgdir/usr/lib/twintaillauncher/resources/
62+
install -Dm755 $_dirname/src-tauri/target/release/twintaillauncher -t $pkgdir/usr/bin
63+
install -Dm644 $_dirname/twintaillauncher.desktop -t $pkgdir/usr/share/applications
64+
install -Dm644 $_dirname/src-tauri/icons/32x32.png $pkgdir/usr/share/icons/hicolor/32x32/apps/$pkgname.png
65+
install -Dm644 $_dirname/src-tauri/icons/128x128.png $pkgdir/usr/share/icons/hicolor/128x128/apps/$pkgname.png
66+
install -Dm644 $_dirname/src-tauri/icons/128x128@2x.png $pkgdir/usr/share/icons/hicolor/256x256@2/apps/$pkgname.png
67+
}
68+
EOF
69+
- name: Test PKGBUILD
70+
uses: KSXGitHub/github-actions-deploy-aur@v4.1.1
71+
with:
72+
pkgname: twintaillauncher
73+
pkgbuild: ./PKGBUILD
74+
test: true
75+
commit_username: ${{ secrets.GIT_USER }}
76+
commit_email: ${{ secrets.GIT_EMAIL }}
77+
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
78+
commit_message: "Update to version ${{ env.VERSION }}"
79+
ssh_keyscan_types: rsa,ecdsa,ed25519
80+
- name: Publish AUR package
81+
if: success()
82+
uses: KSXGitHub/github-actions-deploy-aur@v4.1.1
83+
with:
84+
pkgname: twintaillauncher
85+
pkgbuild: ./PKGBUILD
86+
commit_username: ${{ secrets.GIT_USER }}
87+
commit_email: ${{ secrets.GIT_EMAIL }}
88+
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
89+
commit_message: "Update to version ${{ env.VERSION }}"
90+
ssh_keyscan_types: rsa,ecdsa,ed25519

.github/workflows/update-copr.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: update-copr.yml
2+
on:
3+
release:
4+
types: [published]
5+
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: "Version tag (e.g. ttl-v0.6.9)"
9+
required: true
10+
11+
jobs:
12+
update-rpm-repo:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Set version
16+
shell: bash
17+
run: |
18+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
19+
RAW_VERSION=${{ github.event.inputs.version }}
20+
else
21+
RAW_VERSION=${{ github.event.release.tag_name }}
22+
fi
23+
CLEAN_VERSION="${RAW_VERSION#ttl-v}"
24+
echo "RAW_VERSION=$RAW_VERSION" >> "$GITHUB_ENV"
25+
echo "VERSION=$CLEAN_VERSION" >> $GITHUB_ENV
26+
- name: Dispatch to RPM repo
27+
uses: peter-evans/repository-dispatch@v4
28+
with:
29+
token: ${{ secrets.WINGET_TOKEN }}
30+
repository: TwintailTeam/copr-pkgs
31+
event-type: upstream-release
32+
client-payload: >-
33+
{
34+
"release_tag": "${{ env.RAW_VERSION }}",
35+
"release_name": "${{ env.VERSION }}",
36+
"url": "${{ github.event.release.html_url || 'manual' }}"
37+
}
Lines changed: 29 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,37 @@
1-
name: Publish to WinGet
1+
name: update-winget.yml
22
on:
3-
# release:
4-
# types: [released]
3+
release:
4+
types: [published]
55
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: "Version tag (e.g. ttl-v0.6.9)"
9+
required: true
10+
611
jobs:
7-
publish:
12+
update-winget-package:
813
runs-on: windows-latest
914
steps:
10-
- uses: vedantmgoyal9/winget-releaser@main
15+
- name: Set version
16+
shell: "bash"
17+
run: |
18+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
19+
RAW_VERSION=${{ github.event.inputs.version }}
20+
else
21+
RAW_VERSION=${{ github.event.release.tag_name }}
22+
fi
23+
CLEAN_VERSION="${RAW_VERSION#ttl-v}"
24+
echo "RAW_VERSION=$RAW_VERSION" >> "$GITHUB_ENV"
25+
echo "VERSION=$CLEAN_VERSION" >> $GITHUB_ENV
26+
- name: Update winget package
27+
uses: vedantmgoyal9/winget-releaser@main
28+
env:
29+
VERSION: ${{ env.VERSION }}
30+
RAW_VERSION: ${{ env.RAW_VERSION }}
1131
with:
1232
identifier: TwintailTeam.TTL
13-
max-versions-to-keep: 5
14-
installers-regex: '\.exe$' # Only .exe files
33+
max-versions-to-keep: 3
34+
version: '${{ env.VERSION }}'
35+
release-tag: '${{ env.RAW_VERSION }}'
36+
installers-regex: '\.exe$'
1537
token: ${{ secrets.WINGET_TOKEN }}

README.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,15 @@ We do our best to ensure the launcher avoids detection and doesn't interfere wit
5858

5959
## Installation
6060

61-
| Platform | Link | Note(s) |
62-
|-----------------|---------------------------------------------------------------------------------|---------------------------------------------|
63-
| Windows (x64) | [Winget](https://wingetgui.com/apps/TwintailTeam-TTL) | Installation is only supported via `winget` |
64-
| Linux (Flatpak) | [Flathub](https://flathub.org/apps/app.twintaillauncher.ttl) | Recommended method for all distributions |
65-
| Linux (AUR) | [twintaillauncher-git](https://aur.archlinux.org/packages/twintaillauncher-git) | Use AUR helper (`yay` / `paru`) |
66-
| Linux (AUR) | [twintaillauncher-bin](https://aur.archlinux.org/packages/twintaillauncher-bin) | Use AUR helper (`yay` / `paru`) |
67-
| Linux (DEB) | [Download](https://github.com/TwintailTeam/TwintailLauncher/releases/latest) | **NOT RECOMMENDED** Used for AUR bin |
61+
| Platform | Link | Note(s) |
62+
|-------------------------------------|---------------------------------------------------------------------------------|------------------------------------------------------|
63+
| Windows (x64, Stable) | [Winget](https://wingetgui.com/apps/TwintailTeam-TTL) | Installation is only supported via `winget` |
64+
| Linux (Flatpak, Stable) | [Flathub](https://flathub.org/apps/app.twintaillauncher.ttl) | Recommended method for all distributions |
65+
| Linux (Copr, Stable) | [Copr](https://copr.fedorainfracloud.org/coprs/tukandev/TwintailLauncher/) | Fedora & Fedora based distributions |
66+
| Linux (AUR, Unstable - From source) | [twintaillauncher-git](https://aur.archlinux.org/packages/twintaillauncher-git) | Use AUR helper (`yay` / `paru`) |
67+
| Linux (AUR, Stable - From source) | [twintaillauncher](https://aur.archlinux.org/packages/twintaillauncher) | Use AUR helper (`yay` / `paru`) |
68+
| Linux (AUR, Stable - From deb) | [twintaillauncher-bin](https://aur.archlinux.org/packages/twintaillauncher-bin) | Use AUR helper (`yay` / `paru`) |
69+
| Linux (DEB) | [Download](https://github.com/TwintailTeam/TwintailLauncher/releases/latest) | **NOT RECOMMENDED** Used for AUR & Copr repositories |
6870

6971
## Developers & Compiling
7072

0 commit comments

Comments
 (0)