diff options
author | metamuffin <metamuffin@disroot.org> | 2025-07-19 22:47:08 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-07-19 22:47:08 +0200 |
commit | 044d5d2aba1852100e811fe31d075bd1cf3db1c6 (patch) | |
tree | e8277a54f98d08d58799c341f6bc7026cc7cd32f /hurrycurry-standalone-files/PKGBUILD | |
parent | f7b4c98535cef4786a4fb0de8d943434ab47c7f9 (diff) | |
download | pkgbuilds-044d5d2aba1852100e811fe31d075bd1cf3db1c6.tar pkgbuilds-044d5d2aba1852100e811fe31d075bd1cf3db1c6.tar.bz2 pkgbuilds-044d5d2aba1852100e811fe31d075bd1cf3db1c6.tar.zst |
hurrycurry 2.3.4
Diffstat (limited to 'hurrycurry-standalone-files/PKGBUILD')
-rw-r--r-- | hurrycurry-standalone-files/PKGBUILD | 46 |
1 files changed, 41 insertions, 5 deletions
diff --git a/hurrycurry-standalone-files/PKGBUILD b/hurrycurry-standalone-files/PKGBUILD index 4fa6ef8..c680e5c 100644 --- a/hurrycurry-standalone-files/PKGBUILD +++ b/hurrycurry-standalone-files/PKGBUILD @@ -1,8 +1,8 @@ # Maintainer: metamuffin <metamuffin@disroot.org> pkgname=hurrycurry-standalone-files -pkgver=2.3.3 -pkgrel=2 +pkgver=2.3.4 +pkgrel=1 pkgdesc="A game about cooking (standalone files)" arch=('any') url="https://codeberg.org/hurrycurry/hurrycurry" @@ -14,12 +14,20 @@ makedepends=( 'godot' 'esbuild' 'typst' + 'nsis' 'mingw-w64-gcc' 'mingw-w64-binutils' 'lib32-rust-libs' ) -source=("hurrycurry-$pkgver.tar.gz::https://codeberg.org/hurrycurry/hurrycurry/archive/v$pkgver.tar.gz") -sha256sums=('cbad7db09db129cfc79ee7464d83b29daae3ff71c4cc33432b91d317242f9ddf') + +_inst_version=2.3.4 +_website_version=2.3.4 +source=("hurrycurry-$pkgver.tar.gz::https://codeberg.org/hurrycurry/hurrycurry/archive/v$pkgver.tar.gz" + "hurrycurry-windows-installer-$_inst_version.tar.gz::https://codeberg.org/hurrycurry/windows-installer/archive/v$_inst_version.tar.gz" + "hurrycurry-website-$_website_version.tar.gz::https://codeberg.org/hurrycurry/website/archive/v$_website_version.tar.gz") +sha256sums=('060f5851038c3af2eeff20289205bf52f6ac11545d3ae3aea289c2ad8d46e8dd' + 'd071e15ca639ea481ccd96e3585a46acc8fb5f71a8d73124a7d98ff22eb40043' + '5c63e7db9ff2fbb2f7f82ef04b63412913beb276e75b755a4c91967a390c2fea') _targets=( "x86_64-unknown-linux-gnu" @@ -65,7 +73,9 @@ build() { export CFLAGS= mkdir -p out - cd "hurrycurry" + pushd "hurrycurry" + + git reset --hard make client make -C data all @@ -75,12 +85,19 @@ build() { tar --zstd -cvf ../out/data.tar.zst "${datafiles[@]}" zip ../out/data.zip "${datafiles[@]}" + sed -i "s/^const DISTRIBUTION := .*/const DISTRIBUTION := \"standalone\"/" client/global.gd + sed -i "s/^const VERSION := .*/const VERSION := \"$pkgver-$pkgrel\"/" client/global.gd + godot --headless --export-pack wasm32-unknown-unknown ../../out/client-any.pck client/project.godot godot --headless --export-release wasm32-unknown-unknown ../../out/client-wasm32-unknown-unknown.html client/project.godot for t in "${_targets[@]}"; do godot --headless --export-release "$t" "../../out/client-$t$(_target_suf "$t")" client/project.godot done + sed -i "s/^const DISTRIBUTION := .*/const DISTRIBUTION := \"windows-installer\"/" client/global.gd + godot --headless --export-release "x86_64-pc-windows-gnu" "../../out/client-windows-installer-64.exe" client/project.godot + godot --headless --export-release "i686-pc-windows-gnu" "../../out/client-windows-installer-32.exe" client/project.godot + for t in "${_targets[@]}"; do if echo "$t" | grep -q android; then echo skip "$t"; continue; fi echo build "$t" @@ -88,6 +105,23 @@ build() { cargo build --release --target "$t" --bin hurrycurry-discover cargo build --release --target "$t" --bin hurrycurry-replaytool done + + popd + pushd windows-installer + + ln -svfT ../hurrycurry main + ln -svfT ../website website + make \ + NSIFLAGS="-DVERSION=$pkgver-$pkgrel" \ + DATA=../out/data.tar.zst \ + CLIENT_64=../out/client-windows-installer-64.exe \ + CLIENT_32=../out/client-windows-installer-32.exe \ + SERVER_64=../hurrycurry/target/x86_64-pc-windows-gnu/release/hurrycurry-server.exe \ + SERVER_32=../hurrycurry/target/i686-pc-windows-gnu/release/hurrycurry-server.exe \ + DISCOVER_64=../hurrycurry/target/x86_64-pc-windows-gnu/release/hurrycurry-discover.exe \ + DISCOVER_32=../hurrycurry/target/i686-pc-windows-gnu/release/hurrycurry-discover.exe + + popd } package() { out="$pkgdir/usr/share/hurrycurry/standalone-files" @@ -103,4 +137,6 @@ package() { install -Dvm644 "hurrycurry/target/$t/release/hurrycurry-discover$suf" "$out/discover-$t$suf" install -Dvm644 "hurrycurry/target/$t/release/hurrycurry-replaytool$suf" "$out/replaytool-$t$suf" done + install -Dvm644 "windows-installer/hurrycurry-install-x86_64.exe" "$out/windows-installer-x86_64.exe" + install -Dvm644 "windows-installer/hurrycurry-install-i686.exe" "$out/windows-installer-i686.exe" } |