-
-
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 #16 from NHLOCAL/dev
שיפורי עיצוב + שילוב מודל AI
- Loading branch information
Showing
130 changed files
with
8,086 additions
and
218 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
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,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 |
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 |
---|---|---|
@@ -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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.