From 5c4fe7db123b6b7791b8de852b19be0186389a88 Mon Sep 17 00:00:00 2001 From: gpetters-amd <159576198+gpetters-amd@users.noreply.github.com> Date: Thu, 2 May 2024 03:05:54 -0400 Subject: [PATCH 1/3] Add a debug build --- apps/shark_studio/shark_studio_debug.spec | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 apps/shark_studio/shark_studio_debug.spec diff --git a/apps/shark_studio/shark_studio_debug.spec b/apps/shark_studio/shark_studio_debug.spec new file mode 100644 index 0000000000..ecbd308890 --- /dev/null +++ b/apps/shark_studio/shark_studio_debug.spec @@ -0,0 +1,48 @@ +# -*- mode: python ; coding: utf-8 -*- +from apps.shark_studio.studio_imports import pathex, datas, hiddenimports + +binaries = [] + +block_cipher = None + +a = Analysis( + ['web/index.py'], + pathex=pathex, + binaries=binaries, + datas=datas, + hiddenimports=hiddenimports, + hookspath=[], + hooksconfig={}, + runtime_hooks=[], + excludes=[], + win_no_prefer_redirects=False, + win_private_assemblies=False, + cipher=block_cipher, + noarchive=False, + module_collection_mode={ + 'gradio': 'py', # Collect gradio package as source .py files + }, +) +pyz = PYZ(a.pure, a.zipped_data, cipher=block_cipher) + +exe = EXE( + pyz, + a.scripts, + a.binaries, + a.zipfiles, + a.datas, + [], + name='nodai_shark_studio', + debug=True, + bootloader_ignore_signals=False, + strip=False, + upx=False, + upx_exclude=[], + runtime_tmpdir=None, + console=True, + disable_windowed_traceback=False, + argv_emulation=False, + target_arch=None, + codesign_identity=None, + entitlements_file=None, +) From 99b7eb07a6153de0242b6555f61d27fd1f92643f Mon Sep 17 00:00:00 2001 From: gpetters-amd <159576198+gpetters-amd@users.noreply.github.com> Date: Thu, 2 May 2024 03:06:22 -0400 Subject: [PATCH 2/3] Change the name --- apps/shark_studio/shark_studio_debug.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/shark_studio/shark_studio_debug.spec b/apps/shark_studio/shark_studio_debug.spec index ecbd308890..de70731264 100644 --- a/apps/shark_studio/shark_studio_debug.spec +++ b/apps/shark_studio/shark_studio_debug.spec @@ -32,7 +32,7 @@ exe = EXE( a.zipfiles, a.datas, [], - name='nodai_shark_studio', + name='nodai_shark_studio_debug', debug=True, bootloader_ignore_signals=False, strip=False, From 7793a0c9522a909633465b17d3356bf756d528be Mon Sep 17 00:00:00 2001 From: gpetters-amd <159576198+gpetters-amd@users.noreply.github.com> Date: Thu, 2 May 2024 03:10:53 -0400 Subject: [PATCH 3/3] Add the debug exe to the nightly builder --- .github/workflows/nightly.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 1c68e12240..97a77fb2b6 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -57,6 +57,9 @@ jobs: pyinstaller .\apps\shark_studio\shark_studio.spec mv ./dist/nodai_shark_studio.exe ./dist/nodai_shark_studio_${{ env.package_version_ }}.exe signtool sign /f c:\g\shark_02152023.cer /fd certHash /csp "eToken Base Cryptographic Provider" /k "${{ secrets.CI_CERT }}" ./dist/nodai_shark_studio_${{ env.package_version_ }}.exe + pyinstaller .\apps\shark_studio\shark_studio_debug.spec + mv ./dist/nodai_shark_studio_debug.exe ./dist/nodai_shark_studio_debug_${{ env.package_version_ }}.exe + signtool sign /f c:\g\shark_02152023.cer /fd certHash /csp "eToken Base Cryptographic Provider" /k "${{ secrets.CI_CERT }}" ./dist/nodai_shark_studio_debug_${{ env.package_version_ }}.exe - name: Upload Release Assets id: upload-release-assets