forked from p15670423/monkey
appimage: remove node_modules from appdir
The node modules do not need to be deliverer with the appimage. Removing them from the AppDir saves 50MB.
This commit is contained in:
parent
78ca2c25b1
commit
408a0de4f0
|
@ -179,13 +179,21 @@ generate_ssl_cert() {
|
||||||
}
|
}
|
||||||
|
|
||||||
build_frontend() {
|
build_frontend() {
|
||||||
pushd "$ISLAND_PATH/cc/ui" || handle_error
|
pushd "$ISLAND_PATH/cc/ui" || handle_error
|
||||||
npm install sass-loader node-sass webpack --save-dev
|
npm install sass-loader node-sass webpack --save-dev
|
||||||
npm update
|
npm update
|
||||||
|
|
||||||
log_message "Generating front end"
|
log_message "Generating front end"
|
||||||
npm run dist
|
npm run dist
|
||||||
popd || handle_error
|
popd || handle_error
|
||||||
|
|
||||||
|
remove_node_modules
|
||||||
|
}
|
||||||
|
|
||||||
|
remove_node_modules() {
|
||||||
|
# Node has served its purpose. We don't need to deliver the node modules with
|
||||||
|
# the AppImage.
|
||||||
|
rm -rf "$ISLAND_PATH"/cc/ui/node_modules
|
||||||
}
|
}
|
||||||
|
|
||||||
add_monkey_icon() {
|
add_monkey_icon() {
|
||||||
|
|
Loading…
Reference in New Issue