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