-
-
Notifications
You must be signed in to change notification settings - Fork 0
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 #9 from NHLOCAL/gui
גרסת GUI משודרגת עם ממשק מבוסס flutter
- Loading branch information
Showing
117 changed files
with
2,881 additions
and
1,512 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Build and Release CLI | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install pyinstaller music_tag jibrish_to_hebrew | ||
- name: Build EXE | ||
run: | | ||
pyinstaller --onefile --add-data "src/core/app/singer-list.csv;app" --name "Singles-Sorter" --icon "src/core/assets/icon.ico" "src/core/singles_sorter_v3.py" | ||
- name: Get the version | ||
id: get_version | ||
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v} | ||
|
||
- name: Rename output file | ||
run: | | ||
move dist\Singles-Sorter.exe dist\Singles-Sorter-cli-${{ steps.get_version.outputs.VERSION }}.exe | ||
- name: Create Release | ||
id: create_release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ github.ref }} | ||
release_name: Release ${{ github.ref }} | ||
draft: true | ||
prerelease: true | ||
|
||
- name: Upload Release Asset | ||
uses: actions/upload-release-asset@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ steps.create_release.outputs.upload_url }} | ||
asset_path: ./dist/singles-sorter-cli-${{ steps.get_version.outputs.VERSION }}.exe | ||
asset_name: singles-sorter-cli-${{ steps.get_version.outputs.VERSION }}.exe | ||
asset_content_type: application/octet-stream |
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,67 +1,45 @@ | ||
name: Publish Release | ||
name: Publish EXE | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*.*' | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v3 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install dependencies | ||
run: | | ||
pip install pyinstaller music_tag | ||
pip install pyinstaller music_tag jibrish_to_hebrew flet==0.22.0 | ||
- name: Build EXE | ||
run: | | ||
# Get the version number from the tag (e.g., v1.0.0) | ||
$env:VERSION = $env:GITHUB_REF -replace '^refs/tags/v', '' | ||
# Run PyInstaller with custom name and version | ||
pyinstaller --noconfirm --onefile --console --name "singles_sorter_func.exe" python-project/singles_sorter_func.py | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
VERSION: ${{ github.ref }} | ||
|
||
|
||
flet pack -i src/core/assets/icon.ico src/core/main.py --product-name "Singles Sorter" --product-version "13.0" --file-description "Singles Sorter" --copyright "nh.local11@gmail.com" | ||
- name: Create Artifact Directory | ||
run: mkdir -p artifacts | ||
|
||
- name: Copy Output File to Artifact Directory | ||
run: copy dist\singles_sorter_func.exe artifacts\ | ||
|
||
- name: Prepare Additional Files | ||
run: | | ||
copy source_code\*.* artifacts\ | ||
run: copy dist\main.exe artifacts\ | ||
|
||
- name: Zip Artifact Directory | ||
run: | | ||
cd artifacts | ||
powershell -Command "Compress-Archive -Path * -DestinationPath Singles-Sorter.zip" | ||
- name: Set version number | ||
run: | | ||
# Get the version number from the tag (e.g., v1.0.0) | ||
$env:VERSION = $env:GITHUB_REF -replace '^refs/tags/v', '' | ||
echo $env:VERSION > version.txt # Update version.txt with your desired version | ||
- name: Create Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v1 | ||
- name: Upload Artifact | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
files: "artifacts/Singles-Sorter.zip" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
name: singles-sorter | ||
path: artifacts/Singles-Sorter.zip |
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.