mirror of
https://github.com/openmv/openmv.git
synced 2025-11-04 14:49:50 +08:00
Zip PyInstaller packages
This commit is contained in:
parent
b7b9cfd64b
commit
402159801b
@ -4,10 +4,10 @@
|
||||
DIST_DIR=dist
|
||||
BUILD_DIR=build
|
||||
OPENMV_DIR=openmv
|
||||
PACKAGE=$(python -c "import sys,platform; print('openmv_'+sys.platform+'_'+platform.machine()+'.tar.gz'.lower())")
|
||||
PACKAGE=$(python -c "import sys,platform; print('openmv_'+sys.platform+'_'+platform.machine()+'.zip'.lower())")
|
||||
SPEC_FILE=openmv-ide.spec
|
||||
|
||||
rm -fr $DIST_DIR $BUILD_DIR $PACKAGE
|
||||
pyinstaller $SPEC_FILE
|
||||
(cd $DIST_DIR && tar -cvzf ../$PACKAGE $OPENMV_DIR)
|
||||
(cd $DIST_DIR && zip ../$PACKAGE -r $OPENMV_DIR)
|
||||
rm -fr $DIST_DIR $BUILD_DIR
|
||||
|
||||
Loading…
Reference in New Issue
Block a user