Skip to content

Commit

Permalink
reafact nikke_ocr.spec y ui.py
Browse files Browse the repository at this point in the history
  • Loading branch information
valentin-marquez committed Oct 15, 2024
1 parent 3a9da87 commit 17f6c63
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,10 @@ jobs:

- name: Prepare release package
run: |
# Create a release folder
mkdir NIKKE-OCR-release
xcopy /E /I dist\NIKKE-OCR NIKKE-OCR-release\NIKKE-OCR
xcopy /E /I resources NIKKE-OCR-release\resources
copy launcher.py NIKKE-OCR-release\
copy requirements\prod.txt NIKKE-OCR-release\requirements.txt
# Copy only the necessary files
xcopy /E /I dist\NIKKE-OCR NIKKE-OCR-release
- name: Zip release package
run: Compress-Archive -Path .\NIKKE-OCR-release -DestinationPath .\NIKKE-OCR.zip
Expand Down
6 changes: 6 additions & 0 deletions scripts/build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ if errorlevel 1 (
goto :error
)

:: Delete previous build files
echo Deleting previous build files...
rmdir /s /q "%ROOT_DIR%\dist" >nul 2>&1
rmdir /s /q "%ROOT_DIR%\build" >nul 2>&1


:: Build with PyInstaller
echo Building with PyInstaller...
pyinstaller --clean "%ROOT_DIR%\nikke_ocr.spec" >nul 2>&1
Expand Down

0 comments on commit 17f6c63

Please sign in to comment.