mirror of
https://github.com/sadan4/dotfiles.git
synced 2025-06-22 04:07:00 -04:00
182 current 2024-06-23 23:25:38 24.11.20240618.c00d587 6.9.3-zen1 *
This commit is contained in:
parent
c6e4b255a6
commit
2cfc8e9b1a
7 changed files with 43 additions and 137 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue