diff options
author | Vijay A <vraravam@users.noreply.github.com> | 2022-04-23 08:59:31 -0500 |
---|---|---|
committer | Vijay A <vraravam@users.noreply.github.com> | 2022-04-23 08:59:31 -0500 |
commit | 148b852d6ee1cfd60959fbd4ae0391eeb66f88f5 (patch) | |
tree | 4f9b493a2a7c30ab3247ec41b954dd8d94e30030 /scripts/build-unix.sh | |
parent | Update node modules (#31) (diff) | |
download | ferdium-app-148b852d6ee1cfd60959fbd4ae0391eeb66f88f5.tar.gz ferdium-app-148b852d6ee1cfd60959fbd4ae0391eeb66f88f5.tar.zst ferdium-app-148b852d6ee1cfd60959fbd4ae0391eeb66f88f5.zip |
Upgrade 'sqlite3'
Add missing dev dependency '@babel/core'
[prep for pnpm] Combine 'prebuild' into 'build' script since pre-scripts automagic is not supported by pnpm
[cleanup] Use 'pnpm' instead of 'pnpm run'
[cleanup] Clean npm cache after cleaning pnpm since pnpm is also managed within npm
[cleanup] Delete '~/.electron-gyp' while cleaning
Diffstat (limited to 'scripts/build-unix.sh')
-rwxr-xr-x | scripts/build-unix.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/build-unix.sh b/scripts/build-unix.sh index 872219a8f..07f9f2f81 100755 --- a/scripts/build-unix.sh +++ b/scripts/build-unix.sh | |||
@@ -63,13 +63,15 @@ if [ "$CLEAN" != "true" ]; then | |||
63 | printf "\n*************** SKIPPING Cleaning ***************\n" | 63 | printf "\n*************** SKIPPING Cleaning ***************\n" |
64 | else | 64 | else |
65 | printf "\n*************** Cleaning!!!!!! ***************\n" | 65 | printf "\n*************** Cleaning!!!!!! ***************\n" |
66 | npm cache clean --force | 66 | |
67 | rm -rf ~/.npm ~/.node-gyp ~/.asdf/installs/nodejs/*/.npm/ | ||
68 | if [[ -s 'pnpm-lock.yaml' ]]; then | 67 | if [[ -s 'pnpm-lock.yaml' ]]; then |
69 | pnpm store prune || true # in case the pnpm executable itself is not present | 68 | pnpm store prune || true # in case the pnpm executable itself is not present |
70 | rm -rf ~/.pnpm-store ~/.pnpm-state | 69 | rm -rf ~/.pnpm-store ~/.pnpm-state |
71 | fi | 70 | fi |
72 | 71 | ||
72 | npm cache clean --force | ||
73 | rm -rf ~/.npm ~/.node-gyp ~/.electron-gyp ~/.asdf/installs/nodejs/*/.npm/ | ||
74 | |||
73 | git -C recipes clean -fxd # Clean recipes folder/submodule | 75 | git -C recipes clean -fxd # Clean recipes folder/submodule |
74 | git clean -fxd # Note: This will blast away the 'recipes' folder if you have symlinked it | 76 | git clean -fxd # Note: This will blast away the 'recipes' folder if you have symlinked it |
75 | fi | 77 | fi |
@@ -125,7 +127,7 @@ printf "\n*************** Building recipes ***************\n" | |||
125 | # Note: 'recipes' is already using only pnpm - can switch to $BASE_CMD AFTER both repos are using pnpm | 127 | # Note: 'recipes' is already using only pnpm - can switch to $BASE_CMD AFTER both repos are using pnpm |
126 | pushd recipes | 128 | pushd recipes |
127 | pnpm i | 129 | pnpm i |
128 | pnpm run package | 130 | pnpm package |
129 | popd | 131 | popd |
130 | 132 | ||
131 | # ----------------------------------------------------------------------------- | 133 | # ----------------------------------------------------------------------------- |