Compare commits

..

10 Commits

Author SHA1 Message Date
894141a402 Create build.yml 2026-02-11 16:07:45 +01:00
52be679172 use archive source instead of git 2026-02-04 09:53:16 +01:00
d2ecd86dde Update to 2.7.3 2026-02-02 12:37:33 +01:00
5bb9789fa1 Update 2.6.2 2026-01-31 23:56:55 +01:00
eb1b941f57 Update to 2.6.1 and add new depencies 2026-01-30 15:24:18 +01:00
bdf727803d Fix bad sums for .desktop file in PKGBUILD. 2026-01-16 07:00:18 +01:00
aade0596a3 Fix .desktop file because of the package's rename. 2026-01-16 06:54:43 +01:00
fc78cff2d0 Try to rename the pkg to pandora-launcher. 2026-01-15 08:20:07 +01:00
1f0533e749 Update SRCINFO. (version 2.5.0) 2026-01-13 20:09:04 +01:00
a03bb776d5 Remove unused file and update to 2.5.0. 2026-01-13 20:06:29 +01:00
7 changed files with 123 additions and 52 deletions

View File

@@ -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. 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 pkgrel = 2
url = http://pandora.moulberry.com/ url = http://pandora.moulberry.com/
arch = x86_64 arch = x86_64
@@ -8,7 +8,6 @@ pkgbase = pandora_launcher
makedepends = cargo makedepends = cargo
makedepends = mold makedepends = mold
makedepends = xcb-util makedepends = xcb-util
makedepends = git
depends = libxkbcommon-x11 depends = libxkbcommon-x11
depends = vulkan-tools depends = vulkan-tools
depends = wayland depends = wayland
@@ -18,9 +17,12 @@ pkgbase = pandora_launcher
depends = vulkan-driver depends = vulkan-driver
depends = openssl depends = openssl
optdepends = flite: minecraft narrator support optdepends = flite: minecraft narrator support
source = pandora_launcher::git+https://github.com/Moulberry/PandoraLauncher.git#tag=v2.3.0 optdepends = orca: minecraft screen reader
source = pandora_launcher.desktop optdepends = gamemode: gamemode support
sha256sums = 8ee2e772fa0ee4e86b8577747e7200f8e9b7f7f61bf9d604d6b634cf5d41ec1e optdepends = mangohud: mangohud support
sha256sums = 39dbc50e690690e3111aa7e98fefc2686e4993f5bf062b0346f8dc0964cd439b 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

View 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
View File

@@ -20,5 +20,5 @@ src/
# End of https://www.toptal.com/developers/gitignore/api/archlinuxpackages # End of https://www.toptal.com/developers/gitignore/api/archlinuxpackages
# makepkg test # makepkg test
pandora_launcher pandora-launcher
build build

21
LICENSE
View File

@@ -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.

View File

@@ -1,6 +1,8 @@
# Maintainer: Azur84 <Azur84@outlook.fr> # Maintainer: Azur84 <Azur84@outlook.fr>
pkgname=pandora_launcher pkgname=pandora-launcher
pkgver=2.3.0 _pkgrustname=pandora_launcher
_pkgtarname=PandoraLauncher
pkgver=2.7.3
pkgrel=2 pkgrel=2
pkgdesc="A modern Minecraft launcher that balances ease-of-use with powerful instance management features." pkgdesc="A modern Minecraft launcher that balances ease-of-use with powerful instance management features."
arch=('x86_64') arch=('x86_64')
@@ -20,29 +22,29 @@ makedepends=(
'cargo' 'cargo'
'mold' 'mold'
'xcb-util' 'xcb-util'
'git'
) )
optdepends=( optdepends=(
'flite: minecraft narrator support' 'flite: minecraft narrator support'
'orca: minecraft screen reader'
'gamemode: gamemode support'
'mangohud: mangohud support'
) )
source=( 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" "$pkgname.desktop"
) )
sha256sums=( sha256sums=('89a1f154d31486b9020a21ac4a0833a82d3bc7d5738a5183df1261e11b0a6ad4'
'8ee2e772fa0ee4e86b8577747e7200f8e9b7f7f61bf9d604d6b634cf5d41ec1e' 'f9ab75791b696e27569c5bc44b8d325f356a6e36efe4eb9c2e227cb2ba95b6b3')
'39dbc50e690690e3111aa7e98fefc2686e4993f5bf062b0346f8dc0964cd439b'
)
export RUSTUP_TOOLCHAIN=stable export RUSTUP_TOOLCHAIN=stable
prepare() { prepare() {
cd "$pkgname" cd "$_pkgtarname-$pkgver"
cargo fetch --locked --target $(rustc --print host-tuple) cargo fetch --locked --target $(rustc --print host-tuple)
} }
build() { build() {
cd "$pkgname" cd "$_pkgtarname-$pkgver"
export CARGO_TARGET_DIR=target export CARGO_TARGET_DIR=target
export RUSTFLAGS="-C link-arg=-fuse-ld=mold" export RUSTFLAGS="-C link-arg=-fuse-ld=mold"
cargo build --release --locked --target $(rustc --print host-tuple) cargo build --release --locked --target $(rustc --print host-tuple)
@@ -51,8 +53,8 @@ build() {
package() { package() {
install -d "$pkgdir/usr/"{bin,share/{pixmaps,applications}} install -d "$pkgdir/usr/"{bin,share/{pixmaps,applications}}
install -Dm755 -t "$pkgdir/usr/bin/" "$pkgname/target/$(rustc --print host-tuple)/release/$pkgname" install -Dm755 "$_pkgtarname-$pkgver/target/$(rustc --print host-tuple)/release/$_pkgrustname" "$pkgdir/usr/bin/$pkgname"
install "$pkgname/package/icon_256x256.png" "$pkgdir/usr/share/pixmaps/$pkgname.png" install "$_pkgtarname-$pkgver/package/windows.svg" "$pkgdir/usr/share/pixmaps/$pkgname.svg"
install "$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop" 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
View 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

View File

@@ -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