open-stage-control: do not copy node_modules to reduce closure
This commit is contained in:
parent
e738da1f95
commit
067bfc6c90
|
@ -33,16 +33,13 @@ buildNpmPackage rec {
|
||||||
makeCacheWritable = true;
|
makeCacheWritable = true;
|
||||||
npmFlags = [ "--legacy-peer-deps" ];
|
npmFlags = [ "--legacy-peer-deps" ];
|
||||||
|
|
||||||
# Override installPhase so we can copy the only folders that matter (app and node_modules)
|
# Override installPhase so we can copy the only directory that matters (app)
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
runHook preInstall
|
runHook preInstall
|
||||||
|
|
||||||
# prune unused deps
|
|
||||||
npm prune --omit dev --no-save $npmFlags
|
|
||||||
|
|
||||||
# copy built app and node_modules directories
|
# copy built app and node_modules directories
|
||||||
mkdir -p $out/lib/node_modules/open-stage-control
|
mkdir -p $out/lib/node_modules/open-stage-control
|
||||||
cp -r app node_modules $out/lib/node_modules/open-stage-control/
|
cp -r app $out/lib/node_modules/open-stage-control/
|
||||||
|
|
||||||
# copy icon
|
# copy icon
|
||||||
install -Dm644 resources/images/logo.png $out/share/icons/hicolor/256x256/apps/open-stage-control.png
|
install -Dm644 resources/images/logo.png $out/share/icons/hicolor/256x256/apps/open-stage-control.png
|
||||||
|
|
Loading…
Reference in a new issue