summaryrefslogtreecommitdiff
path: root/buildm1.sh
diff options
context:
space:
mode:
authorNate Sesti <sestinj@gmail.com>2023-08-23 15:53:39 -0700
committerNate Sesti <sestinj@gmail.com>2023-08-23 15:53:39 -0700
commitf246a05b4d192a3f2ba717541d182ab3bcb830de (patch)
treeb0cd7c9793125dfbfe42726aaf02d1e6b597b7ca /buildm1.sh
parent6ad783f441ffc2f822c494608bc6587a0152c04a (diff)
downloadsncontinue-f246a05b4d192a3f2ba717541d182ab3bcb830de.tar.gz
sncontinue-f246a05b4d192a3f2ba717541d182ab3bcb830de.tar.bz2
sncontinue-f246a05b4d192a3f2ba717541d182ab3bcb830de.zip
build: :construction_worker: update build script for m1
Diffstat (limited to 'buildm1.sh')
-rw-r--r--buildm1.sh23
1 files changed, 17 insertions, 6 deletions
diff --git a/buildm1.sh b/buildm1.sh
index 356026c0..fbb127c2 100644
--- a/buildm1.sh
+++ b/buildm1.sh
@@ -1,11 +1,22 @@
-
#!/bin/sh
-# 1. Remove continuedev/.venv
+# 1. Remove unwanted stuff
+rm -rf build
+rm -rf env
+rm -rf dist
rm -rf continuedev/.venv
-# 2. Run pyinstaller run.m1.spec
-pyinstaller run.m1.spec
+# 2. Create a new virtual environment and activate it
+python3 -m venv env
+source env/bin/activate
+
+# 3. Install the required packages
+pip install -r continuedev/requirements.txt
+
+pip install pyinstaller
+
+# 4. Call PyInstaller from within the virtual environment
+env/bin/pyinstaller run.m1.spec
-# 3. Reinstall poetry deps
-cd continuedev && poetry install \ No newline at end of file
+# 5. Deactivate the virtual environment
+deactivate \ No newline at end of file