summaryrefslogtreecommitdiffstats
path: root/scripts/build-unix.sh
diff options
context:
space:
mode:
authorLibravatar Vijay Aravamudhan <vraravam@users.noreply.github.com>2022-04-30 22:56:53 -0500
committerLibravatar GitHub <noreply@github.com>2022-05-01 03:56:53 +0000
commit766ed654ba785cfe11e6ee8714fcb1199e073977 (patch)
tree7e18d54ee9498c80d2bf2863ac1a56898ee47793 /scripts/build-unix.sh
parentFix issue where 'macos-notification-state' was being loaded in non-macos (diff)
downloadferdium-app-766ed654ba785cfe11e6ee8714fcb1199e073977.tar.gz
ferdium-app-766ed654ba785cfe11e6ee8714fcb1199e073977.tar.zst
ferdium-app-766ed654ba785cfe11e6ee8714fcb1199e073977.zip
Remove native compilation ('python', 'node-gyp') since we no longer have such dependencies (#73)
Diffstat (limited to 'scripts/build-unix.sh')
-rwxr-xr-xscripts/build-unix.sh13
1 files changed, 2 insertions, 11 deletions
diff --git a/scripts/build-unix.sh b/scripts/build-unix.sh
index 093a0ec02..602197f7d 100755
--- a/scripts/build-unix.sh
+++ b/scripts/build-unix.sh
@@ -3,7 +3,7 @@
3# INTRO: 3# INTRO:
4# This file is used to build ferdium on both x64 and arm-based for macos and linux (not tested on arm for linux). 4# This file is used to build ferdium on both x64 and arm-based for macos and linux (not tested on arm for linux).
5# It also handles any corrupted node modules with the 'CLEAN' env var (set it to 'true' for cleaning) 5# It also handles any corrupted node modules with the 'CLEAN' env var (set it to 'true' for cleaning)
6# It will install the system dependencies except for node and python (which are still verified) 6# It will install the system dependencies except for node (which is still verified)
7# I sometimes symlink my 'recipes' folder so that any changes that I need to do in it can also be committed and pushed independently 7# I sometimes symlink my 'recipes' folder so that any changes that I need to do in it can also be committed and pushed independently
8# This file can live anywhere in your PATH 8# This file can live anywhere in your PATH
9 9
@@ -32,7 +32,6 @@ command_exists() {
32# Checking the developer environment 32# Checking the developer environment
33# Check for installed programmes 33# Check for installed programmes
34command_exists node || fail_with_docs "Node is not installed" 34command_exists node || fail_with_docs "Node is not installed"
35command_exists python || fail_with_docs "python is not installed"
36 35
37# Check node version 36# Check node version
38EXPECTED_NODE_VERSION=$(cat .nvmrc) 37EXPECTED_NODE_VERSION=$(cat .nvmrc)
@@ -69,7 +68,7 @@ else
69 fi 68 fi
70 69
71 npm cache clean --force 70 npm cache clean --force
72 rm -rf ~/.npm ~/.node-gyp ~/.electron-gyp ~/.asdf/installs/nodejs/*/.npm/ 71 rm -rf ~/.npm ~/.electron-gyp ~/.asdf/installs/nodejs/*/.npm/
73 72
74 git -C recipes clean -fxd # Clean recipes folder/submodule 73 git -C recipes clean -fxd # Clean recipes folder/submodule
75 git clean -fxd # Note: This will blast away the 'recipes' folder if you have symlinked it 74 git clean -fxd # Note: This will blast away the 'recipes' folder if you have symlinked it
@@ -77,14 +76,6 @@ fi
77 76
78# ----------------------------------------------------------------------------- 77# -----------------------------------------------------------------------------
79# Ensure that the system dependencies are at the correct version - fail if not 78# Ensure that the system dependencies are at the correct version - fail if not
80# Check python version
81EXPECTED_PYTHON_VERSION="3.10.4"
82ACTUAL_PYTHON_VERSION=$(python --version | sed -e "s/Python //")
83if [[ "$ACTUAL_PYTHON_VERSION" != "$EXPECTED_PYTHON_VERSION" ]]; then
84 fail_with_docs "You are not running the expected version of Python!
85 expected: [$EXPECTED_PYTHON_VERSION]
86 actual : [$ACTUAL_PYTHON_VERSION]"
87fi
88 79
89# ----------------------------------------------------------------------------- 80# -----------------------------------------------------------------------------
90# Ensure that the system dependencies are at the correct version - recover if not 81# Ensure that the system dependencies are at the correct version - recover if not