mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 13:00:23 +00:00
vencord: set standalone build mode
This tells Vencord that it is not installed using its Git installation
method. Currently this doesn't do anything, as the only consumer of this
value is the updater code, that has been effectively disabled using a
patch.
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
(cherry picked from commit 1410783ff5)
This commit is contained in:
committed by
github-actions[bot]
parent
6409f7e815
commit
58dfa31e8f
@@ -36,6 +36,7 @@ buildNpmPackage rec {
|
||||
npmDepsHash = "sha256-m+hczXog03Gz81CP/blkRJPaTrEhmLQFvVtOfWKYQL4=";
|
||||
npmFlags = [ "--legacy-peer-deps" ];
|
||||
npmBuildScript = if buildWebExtension then "buildWeb" else "build";
|
||||
npmBuildFlags = [ "--" "--standalone" ];
|
||||
|
||||
prePatch = ''
|
||||
cp ${./package-lock.json} ./package-lock.json
|
||||
@@ -49,11 +50,12 @@ buildNpmPackage rec {
|
||||
./disable-updater-ui.patch
|
||||
];
|
||||
|
||||
installPhase = if buildWebExtension then ''
|
||||
cp -r dist/chromium-unpacked/ $out
|
||||
'' else ''
|
||||
cp -r dist/ $out
|
||||
'';
|
||||
installPhase =
|
||||
if buildWebExtension then ''
|
||||
cp -r dist/chromium-unpacked/ $out
|
||||
'' else ''
|
||||
cp -r dist/ $out
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Vencord web extension";
|
||||
|
||||
Reference in New Issue
Block a user