mirror of
https://github.com/amiayweb/Hytale-F2P.git
synced 2026-02-26 06:01:45 -03:00
merge last two commits to develop (#165)
* Add correct auto-detect version and commit If a person uses PKGBUILD, it will automatically determine the latest version and commit. * Remove maintainer and change to npm ci --------- Co-authored-by: Terromur <79866197+Terromur@users.noreply.github.com>
This commit is contained in:
10
PKGBUILD
10
PKGBUILD
@@ -1,8 +1,7 @@
|
||||
# Maintainer: Terromur <terromuroz@proton.me>
|
||||
# Maintainer: Fazri Gading <fazrigading@gmail.com>
|
||||
pkgname=Hytale-F2P-git
|
||||
_pkgname=Hytale-F2P
|
||||
pkgver=2.0.11.r120.gb05aeef
|
||||
pkgver=2.0.12.r150.gb62ffc1
|
||||
pkgrel=1
|
||||
pkgdesc="Hytale-F2P - unofficial Hytale Launcher for free to play with multiplayer support"
|
||||
arch=('x86_64')
|
||||
@@ -14,12 +13,15 @@ sha256sums=('SKIP' '46488fada4775d9976d7b7b62f8d1f1f8d9a9a9d8f8aa9af4f2e2153019f
|
||||
|
||||
pkgver() {
|
||||
cd "$_pkgname"
|
||||
printf "2.0.11.r%s.g%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
|
||||
version=$(git describe --abbrev=0 --tags --match "v[0-9]*")
|
||||
commits=$(git rev-list --count HEAD)
|
||||
hash=$(git rev-parse --short HEAD)
|
||||
printf "%s.r%s.g%s" "${version#v}" "$commits" "$hash"
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$_pkgname"
|
||||
npm install
|
||||
npm ci
|
||||
npm run build:linux
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user