diff options
Diffstat (limited to 'hurrycurry-standalone-files-git/PKGBUILD')
-rw-r--r-- | hurrycurry-standalone-files-git/PKGBUILD | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/hurrycurry-standalone-files-git/PKGBUILD b/hurrycurry-standalone-files-git/PKGBUILD index 94d2d45..691e42c 100644 --- a/hurrycurry-standalone-files-git/PKGBUILD +++ b/hurrycurry-standalone-files-git/PKGBUILD @@ -1,8 +1,8 @@ # Maintainer: metamuffin <metamuffin@disroot.org> pkgname=hurrycurry-standalone-files-git -pkgver=r2237.34f6723c -pkgrel=2 +pkgver=r2276.0a930e28 +pkgrel=1 pkgdesc="A game about cooking (standalone files (git))" arch=('any') url="https://codeberg.org/hurrycurry/hurrycurry" @@ -77,8 +77,6 @@ build() { pushd "hurrycurry" git reset --hard - sed -i "s/^const DISTRIBUTION := .*/const DISTRIBUTION := \"standalone\"/" client/global.gd - sed -i "s/^const VERSION := .*/const VERSION := \"$pkgver-$pkgrel\"/" client/global.gd make client make -C data all @@ -88,12 +86,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" @@ -110,8 +115,8 @@ build() { make \ NSIFLAGS="-DVERSION=$pkgver-$pkgrel" \ DATA=../out/data.tar.zst \ - CLIENT_64=../out/client-x86_64-pc-windows-gnu.exe \ - CLIENT_32=../out/client-i686-pc-windows-gnu.exe \ + 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 \ |