Skip to content

Commit

Permalink
Fix archive structure, accidentally zipped some files into a folder
Browse files Browse the repository at this point in the history
  • Loading branch information
keet committed Nov 27, 2018
1 parent 34f5ccd commit 8204ef7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions make_exec
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

0 comments on commit 8204ef7

Please sign in to comment.