182 current 2024-06-23 23:25:38 24.11.20240618.c00d587 6.9.3-zen1 *

This commit is contained in:
sadan 2024-06-23 23:25:45 -04:00
parent c6e4b255a6
commit 2cfc8e9b1a
No known key found for this signature in database
7 changed files with 43 additions and 137 deletions

View file

@ -17,9 +17,17 @@ npm install --legacy-peer-deps -f
npmDepsHash=$(prefetch-npm-deps ./package-lock.json)
popd
# FIXME: why doesnt this work
# update-source-version vencord "${latestTag#v}"
set -x
perl -i -pe "s/(?<=gitHash = \")\w{7}(?=\";)/${gitHash:0:7}/" ./default.nix
perl -i -pe "s/(?<=npmDepsHash = \")sha256-.*(?=\";)/${npmDepsHash}/" ./default.nix
perl -i -pe "s/(?<=version = \")(\d.?){0,4}(?=\")/${latestTag:1}/" ./default.nix
perl -i -pe "s/(?<=gitHash = \")\w{7}(?=\";)/${gitHash:0:7}/" ./package.nix
perl -i -pe "s#(?<=npmDepsHash = \")sha256-.*(?=\";)#${npmDepsHash}#" ./package.nix
perl -i -pe "s/(?<=version = \")(\d.?){0,4}(?=\")/${latestTag:1}/" ./package.nix
cp "$tempDir/package-lock.json" "$pkgDir/package-lock.json"
td=$(mktemp -d)
pushd "$td"
git clone https://github.com/Vendicated/Vencord.git
Hash=$(nix-hash ./Vencord --type sha256 --sri)
popd
perl -i -pe "s~(src.{0,120}hash = \")(.{0,70})(\")~\1${Hash}\3~s" ./package.nix