storage: rewrite all lib/ imports to in-repo copies (upstream moved to lib/std/v1.less)
Build Stylus Export / build (push) Skipped
CI / ci (push) Skipped
Deno Check / check (push) Skipped
Lint Userstyles / lint (push) Skipped
Sync Maintainers / sync-maintainers (push) Skipped
Sync Labels / sync (push) Skipped
Deploy Docs to GH Pages / build (push) Canceled after 0s
Deploy Docs to GH Pages / deploy (push) Canceled after 0s

This commit is contained in:
4DBug committed 2026-10-19 22:25:48 -05:00
1 parent 6c75b4930a
commit ba0f23a4ba
1 file changed
+3 -3
+3 -3
View File
@@ -22,11 +22,11 @@ stdenv.mkDerivation {
buildPhase = ''
mkdir -p $out/share ./deno_cache
# styles @import lib.less from the web; use the in-repo copy (sandbox has no network)
grep -rl 'https://userstyles.catppuccin.com/lib/lib.less' styles | xargs sed -i "s|https://userstyles.catppuccin.com/lib/lib.less|$src/lib/lib.less|"
# styles @import lib/*.less from the web; use the in-repo copies (sandbox has no network)
grep -rl 'https://userstyles.catppuccin.com/lib/' styles | xargs sed -i "s|https://userstyles.catppuccin.com/lib/|$src/lib/|g"
DENO_DIR=$PWD/deno_cache stylus-storage-gen "$PWD/styles" "${userstylesOptionsFile}"
# restore the original import URL so storage.js holds no store paths
sed "s|$src/lib/lib.less|https://userstyles.catppuccin.com/lib/lib.less|g" storage.js > $out/share/storage.js
sed "s|$src/lib/|https://userstyles.catppuccin.com/lib/|g" storage.js > $out/share/storage.js
'';
meta = {