Compare commits
10 Commits
06178633a6
...
894141a402
| Author | SHA1 | Date | |
|---|---|---|---|
| 894141a402 | |||
| 52be679172 | |||
| d2ecd86dde | |||
| 5bb9789fa1 | |||
| eb1b941f57 | |||
| bdf727803d | |||
| aade0596a3 | |||
| fc78cff2d0 | |||
| 1f0533e749 | |||
| a03bb776d5 |
18
.SRCINFO
18
.SRCINFO
@@ -1,6 +1,6 @@
|
||||
pkgbase = pandora_launcher
|
||||
pkgbase = pandora-launcher
|
||||
pkgdesc = A modern Minecraft launcher that balances ease-of-use with powerful instance management features.
|
||||
pkgver = 2.3.0
|
||||
pkgver = 2.7.3
|
||||
pkgrel = 2
|
||||
url = http://pandora.moulberry.com/
|
||||
arch = x86_64
|
||||
@@ -8,7 +8,6 @@ pkgbase = pandora_launcher
|
||||
makedepends = cargo
|
||||
makedepends = mold
|
||||
makedepends = xcb-util
|
||||
makedepends = git
|
||||
depends = libxkbcommon-x11
|
||||
depends = vulkan-tools
|
||||
depends = wayland
|
||||
@@ -18,9 +17,12 @@ pkgbase = pandora_launcher
|
||||
depends = vulkan-driver
|
||||
depends = openssl
|
||||
optdepends = flite: minecraft narrator support
|
||||
source = pandora_launcher::git+https://github.com/Moulberry/PandoraLauncher.git#tag=v2.3.0
|
||||
source = pandora_launcher.desktop
|
||||
sha256sums = 8ee2e772fa0ee4e86b8577747e7200f8e9b7f7f61bf9d604d6b634cf5d41ec1e
|
||||
sha256sums = 39dbc50e690690e3111aa7e98fefc2686e4993f5bf062b0346f8dc0964cd439b
|
||||
optdepends = orca: minecraft screen reader
|
||||
optdepends = gamemode: gamemode support
|
||||
optdepends = mangohud: mangohud support
|
||||
source = pandora-launcher-2.7.3.tar.gz::https://github.com/Moulberry/PandoraLauncher/archive/refs/tags/v2.7.3.tar.gz
|
||||
source = pandora-launcher.desktop
|
||||
sha256sums = 89a1f154d31486b9020a21ac4a0833a82d3bc7d5738a5183df1261e11b0a6ad4
|
||||
sha256sums = f9ab75791b696e27569c5bc44b8d325f356a6e36efe4eb9c2e227cb2ba95b6b3
|
||||
|
||||
pkgname = pandora_launcher
|
||||
pkgname = pandora-launcher
|
||||
|
||||
88
.gitea/workflows/build.yml
Normal file
88
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,88 @@
|
||||
name: Build Arch Package
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "@weekly"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
check-and-build:
|
||||
runs-on: archlinux-basedevel-latest
|
||||
permissions:
|
||||
packages: write
|
||||
contents: write
|
||||
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup build user
|
||||
run: |
|
||||
pacman -Sy --noconfirm git pacman-contrib sudo
|
||||
useradd -m builduser
|
||||
echo "builduser ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/builduser
|
||||
chmod 0440 /etc/sudoers.d/builduser
|
||||
chown -R builduser:builduser $PWD
|
||||
|
||||
- name: Get Pandora Version
|
||||
id: get_tag
|
||||
run: |
|
||||
VERSION=$(git ls-remote --tags --sort='version:refname' https://github.com/Moulberry/PandoraLauncher.git | tail -n 1 | cut -d/ -f3 | sed 's/^v//')
|
||||
echo "latest_tag=$VERSION" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Read Current pkgver
|
||||
id: current
|
||||
run: |
|
||||
source PKGBUILD
|
||||
echo "current=$pkgver" >> $GITHUB_OUTPUT
|
||||
|
||||
- name: Compare Version
|
||||
id: compare
|
||||
run: |
|
||||
if [ "${{ steps.get_tag.outputs.latest_tag }}" != "${{ steps.current.outputs.current }}" ]; then
|
||||
echo "build=true" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "build=false" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Update PKGBUILD
|
||||
if: steps.compare.outputs.build == 'true'
|
||||
run: |
|
||||
sed -i "s/pkgver=.*/pkgver=${{ steps.get_tag.outputs.latest_tag }}/" PKGBUILD
|
||||
sudo -u builduser updpkgsums
|
||||
sudo -u builduser makepkg --printsrcinfo > .SRCINFO
|
||||
|
||||
- name: Build Package
|
||||
if: steps.compare.outputs.build == 'true'
|
||||
run: |
|
||||
sudo -u builduser makepkg -sf --noconfirm
|
||||
|
||||
- name: Upload On Gitea Package
|
||||
if: steps.compare.outputs.build == 'true'
|
||||
env:
|
||||
TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
run: |
|
||||
curl -H "Authorization: token $TOKEN" \
|
||||
-H "Content-Type: application/octet-stream" \
|
||||
--upload-file *.pkg.tar.zst \
|
||||
https://git.azur.webhop.me/api/packages/Azur/arch/pandora-arch
|
||||
|
||||
- name: Configure Git
|
||||
if: steps.compare.outputs.build == 'true'
|
||||
run: |
|
||||
git config user.name "gitea-actions"
|
||||
git config user.email "actions@gitea.local"
|
||||
|
||||
- name: Commit changes
|
||||
if: steps.compare.outputs.build == 'true'
|
||||
run: |
|
||||
git add PKGBUILD .SRCINFO
|
||||
git commit -m "chore: bump to ${{ steps.get_tag.outputs.latest_tag }}" || echo "No changes"
|
||||
|
||||
- name: Push changes
|
||||
if: steps.compare.outputs.build == 'true'
|
||||
env:
|
||||
TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
run: |
|
||||
git remote set-url origin https://oauth2:${TOKEN}@git.azur.webhop.me/Azur/pandora-arch.git
|
||||
git push origin HEAD:main
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -20,5 +20,5 @@ src/
|
||||
# End of https://www.toptal.com/developers/gitignore/api/archlinuxpackages
|
||||
|
||||
# makepkg test
|
||||
pandora_launcher
|
||||
pandora-launcher
|
||||
build
|
||||
21
LICENSE
21
LICENSE
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 Moulberry
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
28
PKGBUILD
28
PKGBUILD
@@ -1,6 +1,8 @@
|
||||
# Maintainer: Azur84 <Azur84@outlook.fr>
|
||||
pkgname=pandora_launcher
|
||||
pkgver=2.3.0
|
||||
pkgname=pandora-launcher
|
||||
_pkgrustname=pandora_launcher
|
||||
_pkgtarname=PandoraLauncher
|
||||
pkgver=2.7.3
|
||||
pkgrel=2
|
||||
pkgdesc="A modern Minecraft launcher that balances ease-of-use with powerful instance management features."
|
||||
arch=('x86_64')
|
||||
@@ -20,29 +22,29 @@ makedepends=(
|
||||
'cargo'
|
||||
'mold'
|
||||
'xcb-util'
|
||||
'git'
|
||||
)
|
||||
optdepends=(
|
||||
'flite: minecraft narrator support'
|
||||
'orca: minecraft screen reader'
|
||||
'gamemode: gamemode support'
|
||||
'mangohud: mangohud support'
|
||||
)
|
||||
source=(
|
||||
"$pkgname::git+https://github.com/Moulberry/PandoraLauncher.git#tag=v$pkgver"
|
||||
"$pkgname-$pkgver.tar.gz::https://github.com/Moulberry/PandoraLauncher/archive/refs/tags/v$pkgver.tar.gz"
|
||||
"$pkgname.desktop"
|
||||
)
|
||||
sha256sums=(
|
||||
'8ee2e772fa0ee4e86b8577747e7200f8e9b7f7f61bf9d604d6b634cf5d41ec1e'
|
||||
'39dbc50e690690e3111aa7e98fefc2686e4993f5bf062b0346f8dc0964cd439b'
|
||||
)
|
||||
sha256sums=('89a1f154d31486b9020a21ac4a0833a82d3bc7d5738a5183df1261e11b0a6ad4'
|
||||
'f9ab75791b696e27569c5bc44b8d325f356a6e36efe4eb9c2e227cb2ba95b6b3')
|
||||
|
||||
export RUSTUP_TOOLCHAIN=stable
|
||||
|
||||
prepare() {
|
||||
cd "$pkgname"
|
||||
cd "$_pkgtarname-$pkgver"
|
||||
cargo fetch --locked --target $(rustc --print host-tuple)
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
cd "$_pkgtarname-$pkgver"
|
||||
export CARGO_TARGET_DIR=target
|
||||
export RUSTFLAGS="-C link-arg=-fuse-ld=mold"
|
||||
cargo build --release --locked --target $(rustc --print host-tuple)
|
||||
@@ -51,8 +53,8 @@ build() {
|
||||
package() {
|
||||
install -d "$pkgdir/usr/"{bin,share/{pixmaps,applications}}
|
||||
|
||||
install -Dm755 -t "$pkgdir/usr/bin/" "$pkgname/target/$(rustc --print host-tuple)/release/$pkgname"
|
||||
install "$pkgname/package/icon_256x256.png" "$pkgdir/usr/share/pixmaps/$pkgname.png"
|
||||
install -Dm755 "$_pkgtarname-$pkgver/target/$(rustc --print host-tuple)/release/$_pkgrustname" "$pkgdir/usr/bin/$pkgname"
|
||||
install "$_pkgtarname-$pkgver/package/windows.svg" "$pkgdir/usr/share/pixmaps/$pkgname.svg"
|
||||
install "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
|
||||
install -Dm644 "$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
install -Dm644 "$_pkgtarname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
}
|
||||
|
||||
9
pandora-launcher.desktop
Normal file
9
pandora-launcher.desktop
Normal file
@@ -0,0 +1,9 @@
|
||||
[Desktop Entry]
|
||||
Name=Pandora Launcher
|
||||
Exec=/usr/bin/pandora-launcher
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=pandora-launcher
|
||||
StartupWMClass=PandoraLauncher
|
||||
Comment=Pandora is a modern Minecraft launcher that balances ease-of-use with powerful instance management features.
|
||||
Categories=Game;ActionGame;AdventureGame;Simulation
|
||||
@@ -1,9 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Name=Pandora Launcher
|
||||
Exec=/usr/bin/pandora_launcher
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=pandora_launcher
|
||||
StartupWMClass=Pandora
|
||||
Comment=Pandora is a modern Minecraft launcher that balances ease-of-use with powerful instance management features
|
||||
Categories=Game;ActionGame;AdventureGame;Simulation
|
||||
Reference in New Issue
Block a user