Merge branch 'master' into drive

This commit is contained in:
troyeguo
2025-02-19 09:09:53 +08:00

View File

@@ -9,11 +9,11 @@ RUN tarball_url=$(curl -s https://api.github.com/repos/koodo-reader/koodo-reader
### --network-timeout 1000000 as a workaround for slow devices
### when the package being installed is too large, Yarn assumes it's a network problem and throws an error
RUN yarn --ingore-optional --network-timeout 1000000 && sed 's/^#include .nan_scriptorigin\\.h./\\/\\/ #include nan_scriptorigin.h/' ./node_modules/nan/nan.h > ./node_modules/nan/nan.h.new && mv ./node_modules/nan/nan.h.new ./node_modules/nan/nan.h && electron-builder install-app-deps
RUN yarn --ignore-scripts --network-timeout 1000000
### Separate `yarn build` layer as a workaround for devices with low RAM.
### If build fails due to OOM, `yarn install` layer will be already cached.
RUN yarn --ingore-optional\
RUN yarn --ignore-scripts\
&& yarn build
### Nginx or Apache can also be used, Caddy is just smaller in size