Skip to content

Commit

Permalink
Merge pull request #16 from NHLOCAL/dev
Browse files Browse the repository at this point in the history
שיפורי עיצוב + שילוב מודל AI
  • Loading branch information
NHLOCAL authored Oct 25, 2024
2 parents 56c6251 + 76b2606 commit c0445e2
Show file tree
Hide file tree
Showing 130 changed files with 8,086 additions and 218 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ jobs:

- name: Install dependencies
run: |
pip install pyinstaller music_tag jibrish_to_hebrew
pip install pyinstaller music_tag jibrish_to_hebrew chardet
- 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_v4.py"
pyinstaller --onefile --add-data "src/core/app/singer-list.csv;app" --name "Singles-Sorter" --icon "src/core/assets/icon.ico" "src/core/singles_sorter_v5.py"
- name: Get the version
id: get_version
Expand Down
109 changes: 109 additions & 0 deletions .github/workflows/publish-installer-ai.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
name: Publish AI Installer and Portable Version

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 flet spacy==3.7.5 scikit-learn==1.5.1 chardet
- name: Get the version
id: get_version
shell: bash
run: |
VERSION=${GITHUB_REF#refs/tags/v}
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "RELEASE_TITLE=מסדר הסינגלים $VERSION" >> $GITHUB_OUTPUT
- name: Build EXE
run: |
flet pack -i src/core/assets/icon.ico src/core/main.py --product-name "Singles Sorter" --product-version "${{ steps.get_version.outputs.VERSION }}" --file-description "Singles Sorter" --copyright "nh.local11@gmail.com"
- name: Install Inno Setup
run: |
choco install innosetup -y
- name: Create Inno Setup Script
run: |
$script = @"
#define MyAppName "מסדר הסינגלים"
#define MyAppVersion "${{ steps.get_version.outputs.VERSION }}"
#define MyAppPublisher "nhlocal"
#define MyAppURL "https://nhlocal.github.io/Singles-Sorter"
#define MyAppExeName "main.exe"
[Setup]
AppId={{C1801B38-3050-4D83-8085-6466145B0A06}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\Singles Sorter
DisableProgramGroupPage=yes
LicenseFile="license.md"
PrivilegesRequired=lowest
OutputBaseFilename=Singles-Sorter-Installer-AI-{#MyAppVersion}
SetupIconFile=src\core\assets\icon.ico
SolidCompression=yes
Compression=lzma2/ultra64
LZMAUseSeparateProcess=yes
LZMADictionarySize=1048576
LZMANumFastBytes=273
WizardStyle=modern
[Languages]
Name: "hebrew"; MessagesFile: "compiler:Languages\Hebrew.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "dist\main.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "src\core\app\*"; DestDir: "{app}\app"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "src\core\models\*"; DestDir: "{app}\models"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "src\core\assets\icon.png"; DestDir: "{app}\assets"; Flags: ignoreversion recursesubdirs createallsubdirs
[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
"@
Set-Content -Path inno_setup_script.iss -Value $script
- name: Build Installer
run: |
& 'C:\Program Files (x86)\Inno Setup 6\ISCC.exe' inno_setup_script.iss
- name: Create Portable Version
run: |
New-Item -ItemType Directory -Force -Path portable
Copy-Item dist\main.exe portable\
Copy-Item -Recurse src\core\app portable\
Copy-Item -Recurse src\core\assets portable\
Compress-Archive -Path portable\* -DestinationPath Singles-Sorter-Portable-${{ steps.get_version.outputs.VERSION }}.zip -CompressionLevel Optimal
- name: Create Release
uses: softprops/action-gh-release@v2.0.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: ${{ steps.get_version.outputs.RELEASE_TITLE }}
draft: true
prerelease: true
files: |
Output/Singles-Sorter-Installer-AI-${{ steps.get_version.outputs.VERSION }}.exe
Singles-Sorter-Portable-AI${{ steps.get_version.outputs.VERSION }}.zip
2 changes: 1 addition & 1 deletion .github/workflows/publish-installer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:

- name: Install dependencies
run: |
pip install pyinstaller music_tag jibrish_to_hebrew flet
pip install pyinstaller music_tag jibrish_to_hebrew flet chardet
- name: Get the version
id: get_version
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/‏‏publish-cli-ai.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Build and Release AI 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 chardet spacy==3.7.5 scikit-learn==1.5.1
- 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_v5.py"
- name: Get the version
id: get_version
shell: bash
run: |
VERSION=${GITHUB_REF#refs/tags/v}
echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
echo "RELEASE_TITLE=מסדר הסינגלים $VERSION" >> $GITHUB_OUTPUT
- name: Rename output file
shell: pwsh
run: |
$version = "${{ steps.get_version.outputs.VERSION }}"
Move-Item -Path "dist\Singles-Sorter.exe" -Destination "dist\singles-sorter-cli-ai-$version.exe"
- name: Create Release
uses: softprops/action-gh-release@v2.0.6
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
name: ${{ steps.get_version.outputs.RELEASE_TITLE }}
draft: true
prerelease: true
files: ./dist/singles-sorter-cli-ai${{ steps.get_version.outputs.VERSION }}.exe
Binary file added docs/assets/action_buttons.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/add_singers_dialog.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/advanced_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/basic_settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/general_android_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/general_view.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/assets/select_folders.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit c0445e2

Please sign in to comment.