Change build to folder
This commit is contained in:
parent
8ced324465
commit
3819197808
@ -1,12 +1,11 @@
|
||||
# -*- mode: python -*-
|
||||
block_cipher = None
|
||||
|
||||
|
||||
a = Analysis(['precise/scripts/stream.py'],
|
||||
pathex=['.'],
|
||||
binaries=[],
|
||||
datas=[],
|
||||
hiddenimports=[],
|
||||
hiddenimports=['prettyparse'],
|
||||
hookspath=[],
|
||||
runtime_hooks=[],
|
||||
excludes=['PySide', 'PyQt4', 'PyQt5', 'matplotlib'],
|
||||
@ -15,16 +14,21 @@ a = Analysis(['precise/scripts/stream.py'],
|
||||
cipher=block_cipher)
|
||||
|
||||
pyz = PYZ(a.pure, a.zipped_data,
|
||||
cipher=block_cipher)
|
||||
cipher=block_cipher)
|
||||
|
||||
exe = EXE(pyz,
|
||||
a.scripts,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
exclude_binaries=True,
|
||||
name='precise-stream',
|
||||
debug=False,
|
||||
strip=True,
|
||||
upx=True,
|
||||
runtime_tmpdir=None,
|
||||
console=True )
|
||||
console=True,)
|
||||
|
||||
coll = COLLECT(exe,
|
||||
a.binaries,
|
||||
a.zipfiles,
|
||||
a.datas,
|
||||
strip=True,
|
||||
upx=True,
|
||||
name='precise-stream')
|
||||
|
10
publish.sh
10
publish.sh
@ -69,15 +69,19 @@ version="$(find_version $build_type)"
|
||||
arch="$(find_arch)"
|
||||
|
||||
sudo pip3 install pyinstaller
|
||||
rm -rf dist/
|
||||
pyinstaller -y precise.stream.spec
|
||||
|
||||
out_file=dist/precise-stream.tar.gz
|
||||
tar -czvf "$out_file" data/precise-stream/
|
||||
|
||||
echo $version > latest
|
||||
|
||||
if [ "$upload_type" = "git" ]; then
|
||||
upload_git dist/precise-stream $arch/
|
||||
upload_git "$out_file" $arch/
|
||||
else
|
||||
upload_s3 dist/precise-stream bootstrap.mycroft.ai/artifacts/static/$type/$arch/$version/
|
||||
upload_s3 dist/precise-stream bootstrap.mycroft.ai/artifacts/static/$type/$arch/ # Replace latest version
|
||||
upload_s3 "$out_file" bootstrap.mycroft.ai/artifacts/static/$type/$arch/$version/
|
||||
upload_s3 "$out_file" bootstrap.mycroft.ai/artifacts/static/$type/$arch/ # Replace latest version
|
||||
upload_s3 latest bootstrap.mycroft.ai/artifacts/static/$type/$arch/
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user