diff --git a/lsfg-vk-ui.flatpak b/lsfg-vk-ui.flatpak deleted file mode 100644 index b438cc5..0000000 Binary files a/lsfg-vk-ui.flatpak and /dev/null differ diff --git a/scripts/package/alpm.PKGINFO b/scripts/package/alpm.PKGINFO index 578c549..3e29674 100644 --- a/scripts/package/alpm.PKGINFO +++ b/scripts/package/alpm.PKGINFO @@ -1,6 +1,6 @@ pkgname = lsfg-vk pkgbase = lsfg-vk -pkgver = ${VERSION}-1 +pkgver = ${ALPM_VERSION}-1 pkgdesc = "Lossless Scaling Frame Generation on Linux via DXVK/Vulkan" url = https://discord.gg/losslessscaling packager = "PancakeTAS " diff --git a/scripts/package/dpkg.control b/scripts/package/dpkg.control index 4f0a0f6..0ac2e8f 100644 --- a/scripts/package/dpkg.control +++ b/scripts/package/dpkg.control @@ -2,7 +2,7 @@ Package: lsfg-vk Description: Lossless Scaling Frame Generation on Linux via DXVK/Vulkan Homepage: https://discord.gg/losslessscaling Maintainer: "PancakeTAS " -Version: ${VERSION}-1 +Version: ${DPKG_VERSION} Architecture: amd64 Section: utils Priority: optional diff --git a/scripts/package/package.sh b/scripts/package/package.sh index 2d24d24..a9d98f6 100755 --- a/scripts/package/package.sh +++ b/scripts/package/package.sh @@ -1,11 +1,17 @@ #!/bin/bash if [ -z "$VERSION" ]; then - echo "VERSION environment variable is not set." - exit 1 + set -eux + export VERSION="1.1.0" + export ALPM_VERSION=$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g' | sed "s/.\..\../$VERSION/") + export DPKG_VERSION=$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g' | sed "s/^v.\..\..\.r[1-9]\+./$VERSION~git$(date '+%Y%m%d')./") + export RPM_VERSION=$(git describe --long --tags | sed 's/\([^-]*-\)g/r\1/;s/-/./g' | sed "s/v.\..\...r/$VERSION^/") +else + set -eux + export ALPM_VERSION="$VERSION" + export DPKG_VERSION="$VERSION" + export RPM_VERSION="$VERSION" fi -set -eux - # set permission bits chmod 755 bin/lsfg-vk-ui chmod 755 lib/liblsfg-vk.so diff --git a/scripts/package/rpm.spec b/scripts/package/rpm.spec index 859c7d4..497d360 100644 --- a/scripts/package/rpm.spec +++ b/scripts/package/rpm.spec @@ -1,6 +1,6 @@ Name: lsfg-vk Summary: Lossless Scaling Frame Generation on Linux via DXVK/Vulkan -Version: ${VERSION} +Version: ${RPM_VERSION} Release: 1%{?dist} URL: https://discord.gg/losslessscaling Packager: "PancakeTAS "