Skip to content

Commit 75614d6

Browse files
authored
Merge pull request #3 from aaratn/refactor_build_package
Refactor build and package
2 parents 2562622 + 3fe7582 commit 75614d6

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.circleci/config.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ commands:
1717
- run:
1818
name: 'Create Build'
1919
command: |
20-
pyinstaller terraenv.py --onefile
21-
chmod +x dist/terraenv
22-
tar cfz terraenv_linux_x64.tar.gz dist
20+
make build
21+
make package
2322
- run:
2423
name: 'Publish Build'
2524
command: |

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ PLATFORM?=linux_x64
22

33
build:
44
@PYTHONOPTIMIZE=1 pyinstaller terraenv.py --onefile --clean --osx-bundle-identifier com.aarat.os.terraenv --nowindowed
5+
@chmod +x dist/terraenv
6+
57
package:
6-
tar -czvf ./terraenv_$(PLATFORM).tar.gz dist/terraenv
8+
@cd dist && tar -czvf ./terraenv_$(PLATFORM).tar.gz terraenv

0 commit comments

Comments
 (0)