Skip to content

Commit

Permalink
Merge pull request #9 from NHLOCAL/gui
Browse files Browse the repository at this point in the history
גרסת GUI משודרגת עם ממשק מבוסס flutter
  • Loading branch information
NHLOCAL authored Jun 22, 2024
2 parents 65d478f + 594ea77 commit c915a5f
Show file tree
Hide file tree
Showing 117 changed files with 2,881 additions and 1,512 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/greetings.yml

This file was deleted.

56 changes: 56 additions & 0 deletions .github/workflows/publish-cli.yml
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
46 changes: 12 additions & 34 deletions .github/workflows/publisher.yml
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.
Binary file not shown.
Binary file not shown.
Loading

0 comments on commit c915a5f

Please sign in to comment.