diff --git a/.github/workflows/distribute-archlinux.yml b/.github/workflows/distribute-archlinux.yml index a5543cded..a4d01beaf 100644 --- a/.github/workflows/distribute-archlinux.yml +++ b/.github/workflows/distribute-archlinux.yml @@ -13,11 +13,16 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Parse version + id: parse_version + run: echo VERSION=`jq .version package.json -r` >> $GITHUB_OUTPUT + - name: Update PKGBUILD for AUR run: | sed -i 's/pkgname=flood/pkgname=nodejs-flood/' ./distribution/archlinux/flood/PKGBUILD sed -i 's/replace-with-your-name/Jesse Chan/' ./distribution/archlinux/flood/PKGBUILD sed -i 's/to-be-determined@tbd/jc@linux.com/' ./distribution/archlinux/flood/PKGBUILD + sed -i 's/version-to-be-replaced/${{ steps.parse_version.outputs.VERSION }}/' ./distribution/archlinux/flood/PKGBUILD - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 diff --git a/.github/workflows/distribute-debian.yml b/.github/workflows/distribute-debian.yml index c9759dc26..0af7bab42 100644 --- a/.github/workflows/distribute-debian.yml +++ b/.github/workflows/distribute-debian.yml @@ -44,13 +44,15 @@ jobs: - name: Copy flood-bin distribution files run: cp -rf distribution/debian/flood-bin/* . - - name: Update BUILD - run: sed -i 's/replace-with-your-name /Jesse Chan /' ./BUILD - - name: Parse version id: parse_version run: echo VERSION=`jq .version package.json -r` >> $GITHUB_OUTPUT + - name: Update BUILD + run: | + sed -i 's/replace-with-your-name /Jesse Chan /' ./BUILD + sed -i 's/version-to-be-replaced/${{ steps.parse_version.outputs.VERSION }}/' ./BUILD + - name: Extract Flood tarball run: | npm pack flood@${{ steps.parse_version.outputs.VERSION }} diff --git a/distribution/archlinux/flood/PKGBUILD b/distribution/archlinux/flood/PKGBUILD index 60667d663..cefa84f09 100644 --- a/distribution/archlinux/flood/PKGBUILD +++ b/distribution/archlinux/flood/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: replace-with-your-name # Contributor: replace-with-your-name _npmname=flood -_npmver=4.8.2 +_npmver=version-to-be-replaced pkgname=flood pkgver=$_npmver pkgrel=1 diff --git a/distribution/debian/flood-bin/BUILD b/distribution/debian/flood-bin/BUILD index ada3b339b..b927ff553 100644 --- a/distribution/debian/flood-bin/BUILD +++ b/distribution/debian/flood-bin/BUILD @@ -10,7 +10,7 @@ PACKAGE = "flood" RECOMMENDS = ["mediainfo"] -VERSION = "4.8.2-0" +VERSION = "version-to-be-replaced-0" genrule( name = "flood-pkg-arm64", diff --git a/distribution/debian/flood/control b/distribution/debian/flood/control index c9d107375..1fa8cd645 100644 --- a/distribution/debian/flood/control +++ b/distribution/debian/flood/control @@ -6,9 +6,9 @@ Uploaders: replace with your name Testsuite: autopkgtest-pkg-nodejs Build-Depends: debhelper-compat (= 11) - , nodejs (>= 12) + , nodejs (>= 16) , pkg-js-tools (>= 0.8.10) -Standards-Version: 4.5.2 +Standards-Version: 4.9.2 Homepage: https://github.com/jesec/flood#readme Vcs-Git: https://salsa.debian.org/js-team/flood.git Vcs-Browser: https://salsa.debian.org/js-team/flood @@ -17,7 +17,7 @@ Package: flood Architecture: all Depends: ${misc:Depends} - , nodejs (>= 12) + , nodejs (>= 16) Recommends: mediainfo Description: modern web user interface for various torrent clients Flood is a modern web user interface for various torrent clients diff --git a/package.json b/package.json index f813faa65..a9104ead7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "flood", - "version": "4.9.1", + "version": "4.9.2", "description": "A modern Web UI for various torrent clients with multi-user and multi-client support", "keywords": [ "typescript",