Rembg is a tool to remove images background
test github action windows installer
Daniel Gatis0dcdb080ae08
diff --git a/.github/workflows/windows_installer.yml b/.github/workflows/windows_installer.ymlindex 7bc0121..9e58c78 100644--- a/.github/workflows/windows_installer.yml+++ b/.github/workflows/windows_installer.yml@@ -1,4 +1,5 @@name: Build Windows Installer+on:push:tags:@@ -11,9 +12,17 @@ jobs:- uses: actions/setup-python@v5- uses: actions/checkout@v4- shell: pwsh- run: ./build-exe.ps1+ run: ./_build-exe.ps1- name: Compile .ISS to .EXE Installeruses: Minionguyjpro/[email protected]with:- path: setup.iss+ path: _setup.issoptions: /O++ - name: Upload binaries to release+ uses: svenstaro/upload-release-action@v2+ with:+ repo_token: ${{ secrets.GITHUB_TOKEN }}+ file: dist/rembg-cli-installer.exe+ asset_name: rembg-cli-installer.exe+ tag: ${{ github.ref }}+ overwrite: truediff --git a/build-exe.ps1 b/_build-exe.ps1similarity index 65%rename from build-exe.ps1rename to _build-exe.ps1index 38bf3b5..eaf9e67 100755--- a/build-exe.ps1+++ b/_build-exe.ps1@@ -1,8 +1,9 @@# Install required packages+pip install pyinstallerpip install -e ".[cli]"# Create PyInstaller spec file with specified data collections-pyi-makespec --collect-data=gradio_client --collect-data=gradio rembg.py+# pyi-makespec --collect-data=gradio_client --collect-data=gradio rembg.py# Run PyInstaller with the generated spec filepyinstaller rembg.specdiff --git a/modpath.iss b/_modpath.isssimilarity index 100%rename from modpath.issrename to _modpath.issdiff --git a/setup-exe.iss b/_setup.isssimilarity index 86%rename from setup-exe.issrename to _setup.issindex 57a6a41..0d85c2e 100644--- a/setup-exe.iss+++ b/_setup.iss@@ -3,9 +3,10 @@#define MyAppPublisher "danielgatis"#define MyAppURL "https://github.com/danielgatis/rembg"#define MyAppExeName "rembg.exe"+#define MyAppId "49AB7484-212F-4B31-A49F-533A480F3FD4"[Setup]-AppId={{49AB7484-212F-4B31-A49F-533A480F3FD4}+AppId={#MyAppId}AppName={#MyAppName}AppVersion={#MyAppVersion}AppPublisher={#MyAppPublisher}@@ -15,7 +16,7 @@ AppUpdatesURL={#MyAppURL}DefaultDirName={autopf}\{#MyAppName}DefaultGroupName={#MyAppName}DisableProgramGroupPage=yes-OutputBaseFilename=setup+OutputBaseFilename=rembg-cli-installerCompression=lzmaSolidCompression=yesWizardStyle=modern@@ -35,9 +36,6 @@ Name: modifypath; Description: "Add to PATH variable"[Icons]Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"-[Run]-Filename: "{app}\{#MyAppExeName}"; Parameters: "--version"; Flags: runhidden-[Code]constModPathName = 'modifypath';@@ -48,4 +46,4 @@ beginsetArrayLength(Result, 1)Result[0] := ExpandConstant('{app}');end;-#include "modpath.iss"+#include "_modpath.iss"diff --git a/rembg.spec b/rembg.specindex dc72a30..8f441f4 100644--- a/rembg.spec+++ b/rembg.spec@@ -4,7 +4,7 @@ from PyInstaller.utils.hooks import collect_data_filesdatas = []datas += collect_data_files('gradio_client')datas += collect_data_files('gradio')-+datas += collect_data_files('onnxruntime')a = Analysis(['rembg.py'],