mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-05 17:10:46 +08:00
Updated build script to check for 7zip
This commit is contained in:
parent
c05b98b0a9
commit
ded1a45970
8
build.sh
8
build.sh
@ -1,13 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
7z > /dev/null 2>&1
|
||||
if [ $? != 0 ]; then
|
||||
echo $0 requires 7zip to run.
|
||||
exit 1
|
||||
fi
|
||||
|
||||
#Get portable python and extract it.
|
||||
if [ ! -f "PortablePython_2.7.2.1.exe" ]; then
|
||||
wget http://ftp.nluug.nl/languages/python/portablepython/v2.7/PortablePython_2.7.2.1.exe
|
||||
fi
|
||||
if [ ! -d target/python ]; then
|
||||
7z x PortablePython_2.7.2.1.exe \$_OUTDIR/App
|
||||
7z x PortablePython_2.7.2.1.exe \$_OUTDIR/Lib/site-packages/wx-2.8-msw-unicode
|
||||
mkdir -p target/python
|
||||
mv \$_OUTDIR/App/* target/python
|
||||
mv \$_OUTDIR/Lib target/python
|
||||
rm -rf \$_OUTDIR
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user