Build en mode dossier (pas onefile) pour éviter faux positif antivirus
- --standalone sans --onefile : produit un dossier au lieu d'un exe compressé - Windows Defender ne bloque plus (pas de technique d'extraction suspecte) - Le dossier est zippé pour distribution facile - Renommé en Pseudonymisation/ pour plus de clarté Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
15
.github/workflows/build-windows.yml
vendored
15
.github/workflows/build-windows.yml
vendored
@@ -40,11 +40,10 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -c "from ner_manager_onnx import NerModelManager; m=NerModelManager(cache_dir='models'); m.load('cmarkea/distilcamembert-base-ner'); print('Model OK:', m.is_loaded()); m.unload()"
|
python -c "from ner_manager_onnx import NerModelManager; m=NerModelManager(cache_dir='models'); m.load('cmarkea/distilcamembert-base-ner'); print('Model OK:', m.is_loaded()); m.unload()"
|
||||||
|
|
||||||
- name: Build with Nuitka
|
- name: Build with Nuitka (standalone folder)
|
||||||
run: |
|
run: |
|
||||||
python -m nuitka `
|
python -m nuitka `
|
||||||
--standalone `
|
--standalone `
|
||||||
--onefile `
|
|
||||||
--enable-plugin=tk-inter `
|
--enable-plugin=tk-inter `
|
||||||
--include-module=anonymizer_core_refactored_onnx `
|
--include-module=anonymizer_core_refactored_onnx `
|
||||||
--include-module=ner_manager_onnx `
|
--include-module=ner_manager_onnx `
|
||||||
@@ -64,24 +63,28 @@ jobs:
|
|||||||
--nofollow-import-to=fitz `
|
--nofollow-import-to=fitz `
|
||||||
--nofollow-import-to=yaml `
|
--nofollow-import-to=yaml `
|
||||||
--windows-console-mode=disable `
|
--windows-console-mode=disable `
|
||||||
--output-filename=Pseudonymisation.exe `
|
--output-dir=build `
|
||||||
--company-name="Hopital" `
|
--company-name="Hopital" `
|
||||||
--product-name="Pseudonymisation de PDF" `
|
--product-name="Pseudonymisation de PDF" `
|
||||||
--product-version=5.0.0 `
|
--product-version=5.0.0 `
|
||||||
--file-description="Pseudonymisation automatique de documents PDF" `
|
--file-description="Pseudonymisation automatique de documents PDF" `
|
||||||
--assume-yes-for-downloads `
|
--assume-yes-for-downloads `
|
||||||
--remove-output `
|
|
||||||
Pseudonymisation_Gui_V5.py
|
Pseudonymisation_Gui_V5.py
|
||||||
|
|
||||||
|
- name: Prepare distribution zip
|
||||||
|
run: |
|
||||||
|
Rename-Item -Path "build\Pseudonymisation_Gui_V5.dist" -NewName "Pseudonymisation"
|
||||||
|
Compress-Archive -Path "build\Pseudonymisation" -DestinationPath "Pseudonymisation-Windows-x64.zip"
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Pseudonymisation-Windows-x64
|
name: Pseudonymisation-Windows-x64
|
||||||
path: Pseudonymisation.exe
|
path: Pseudonymisation-Windows-x64.zip
|
||||||
retention-days: 30
|
retention-days: 30
|
||||||
|
|
||||||
- name: Upload to release (on tag)
|
- name: Upload to release (on tag)
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
uses: softprops/action-gh-release@v2
|
uses: softprops/action-gh-release@v2
|
||||||
with:
|
with:
|
||||||
files: Pseudonymisation.exe
|
files: Pseudonymisation-Windows-x64.zip
|
||||||
|
|||||||
Reference in New Issue
Block a user