-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix archive structure, accidentally zipped some files into a folder
- Loading branch information
keet
committed
Nov 27, 2018
1 parent
34f5ccd
commit 8204ef7
Showing
1 changed file
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,25 @@ | ||
#!/bin/bash | ||
root_directory=$PWD | ||
|
||
# Build Linux executable | ||
docker build -t kubesh_builder_image . | ||
docker run -it --rm --name kubesh_builder -v "$PWD/dist":/usr/src/app/dist kubesh_builder_image | ||
cp helper/install_linux dist/install | ||
tar -zcvf dist/kubesh_linux.tar dist/install dist/kubesh kubesh.json | ||
cp kubesh.json dist/kubesh.json | ||
cd $PWD/dist | ||
tar -zcvf kubesh_linux.tar install kubesh kubesh.json | ||
cd $root_directory | ||
|
||
# Build MacOS executable | ||
virtualenv kubesh | ||
source kubesh/bin/activate | ||
pip install -r requirements.txt | ||
|
||
pyinstaller --clean kubesh.spec | ||
cp helper/install_mac dist/install | ||
tar -zcvf dist/kubesh_mac.tar dist/install dist/kubesh kubesh.json | ||
cp kubesh.json dist/kubesh.json | ||
cd $PWD/dist | ||
tar -zcvf kubesh_mac.tar install kubesh kubesh.json | ||
cd $root_directory | ||
|
||
deactivate |