Skip to content

Commit 9a0bfb8

Browse files
authored
Merge pull request #1 from aaratn/feature/modify_package
modify package logic
2 parents 01fe4ed + afccda7 commit 9a0bfb8

File tree

4 files changed

+19
-22
lines changed

4 files changed

+19
-22
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ jobs:
5050
- name: Build App
5151
run: |
5252
make build
53+
- name: Package App
54+
run: |
55+
PLATFORM=osx make package
5356
- name: Download Upload URL
5457
uses: actions/download-artifact@v1
5558
with:
@@ -67,8 +70,8 @@ jobs:
6770
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6871
with:
6972
upload_url: ${{ steps.extract_upload_url.outputs.upload_url }}
70-
asset_path: dist/terraenv
71-
asset_name: terraenv_osx
73+
asset_path: terraenv_osx.tar.gz
74+
asset_name: terraenv_osx.tar.gz
7275
asset_content_type: application/octet-stream
7376

7477
build_release_linux:
@@ -91,6 +94,9 @@ jobs:
9194
- name: Build App
9295
run: |
9396
make build
97+
- name: Package App
98+
run: |
99+
make package
94100
- name: Download Upload URL
95101
uses: actions/download-artifact@v1
96102
with:
@@ -108,6 +114,6 @@ jobs:
108114
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
109115
with:
110116
upload_url: ${{ steps.extract_upload_url.outputs.upload_url }}
111-
asset_path: dist/terraenv
112-
asset_name: terraenv_linux
117+
asset_path: terraenv_linux.tar.gz
118+
asset_name: terraenv_linux.tar.gz
113119
asset_content_type: application/octet-stream

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,7 @@ dmypy.json
126126

127127
.DS_Store
128128
virtualenv/
129+
130+
# Package File
131+
*.zip
132+
*.tar.gz

Formula/terraenv.rb

Lines changed: 0 additions & 17 deletions
This file was deleted.

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
PLATFORM?=linux
2+
13
build:
2-
@PYTHONOPTIMIZE=1 pyinstaller terraenv.py --onefile --clean --osx-bundle-identifier com.aarat.os.terraenv --nowindowed
4+
@PYTHONOPTIMIZE=1 pyinstaller terraenv.py --onefile --clean --osx-bundle-identifier com.aarat.os.terraenv --nowindowed
5+
package:
6+
tar -czvf ./terraenv_$(PLATFORM).tar.gz dist/terraenv

0 commit comments

Comments
 (0)