-
-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #63 from kraanzu/develop
fix: Lang addition in binaries
- Loading branch information
Showing
9 changed files
with
79 additions
and
1,310 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 |
---|---|---|
|
@@ -6,96 +6,41 @@ on: | |
|
||
permissions: | ||
contents: write | ||
discussions: write | ||
|
||
jobs: | ||
windows-build: | ||
runs-on: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install . | ||
pip install pyinstaller | ||
- name: Package app with pyinstaller | ||
run: | | ||
python -c "with open('smassh.py', 'w') as f: f.write('from smassh.__init__ import main\nmain()\n')" | ||
pyinstaller -F smassh.py --add-data="smassh/assets/languages/:smassh/assets/languages" --add-data="smassh/ui/css/:smassh/ui/css" | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: smassh-windows | ||
path: ./dist/smassh.exe | ||
- name: Rename final file | ||
run: cp ./dist/smassh.exe ./dist/windows-smassh.exe | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: ./dist/windows-smassh.exe | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [windows-latest, ubuntu-latest, macos-latest] | ||
|
||
linux-build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install . | ||
pip install pyinstaller | ||
- name: Package app with pyinstaller | ||
run: | | ||
python -c "with open('smassh.py', 'w') as f: f.write('from smassh.__init__ import main\nmain()\n')" | ||
pyinstaller -F smassh.py --add-data="smassh/assets/languages/:smassh/assets/languages" --add-data="smassh/ui/css/:smassh/ui/css" | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: smassh-linux | ||
path: ./dist/smassh | ||
- name: Rename final file | ||
run: cp ./dist/smassh ./dist/linux-smassh | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: ./dist/linux-smassh | ||
- uses: actions/checkout@v3 | ||
|
||
macOS-build: | ||
runs-on: macOS-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install . | ||
pip install pyinstaller | ||
- name: Package app with pyinstaller | ||
run: | | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install . | ||
pip install pyinstaller | ||
- name: Package app with pyinstaller | ||
run: | | ||
python -c "with open('smassh.py', 'w') as f: f.write('from smassh.__init__ import main\nmain()\n')" | ||
pyinstaller -F smassh.py --add-data="smassh/assets/languages/:smassh/assets/languages" --add-data="smassh/ui/css/:smassh/ui/css" | ||
- name: Upload a Build Artifact | ||
uses: actions/[email protected] | ||
with: | ||
name: smassh-macos | ||
path: ./dist/smassh | ||
- name: Rename final file | ||
run: cp ./dist/smassh ./dist/macos-smassh | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: ./dist/macos-smassh | ||
pyinstaller -F smassh.py --add-data="smassh/ui/css/:smassh/ui/css" | ||
- name: Set final file name | ||
run: echo "FINAL_FILE_NAME=$(echo ${matrix.os} | sed 's/-latest//;s/ubuntu/linux/')-smassh" | ||
|
||
- name: Rename final file | ||
run: cp ./dist/smassh ./dist/${{ env.FINAL_FILE_NAME }} | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: ./dist/${{ env.FINAL_FILE_NAME }} |
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
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,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "smassh" | ||
version = "3.0.1" | ||
version = "3.0.2" | ||
description = "A TUI based typing application" | ||
maintainers = ["kraanzu <[email protected]>"] | ||
license = "GPL v3" | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.