mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-01-12 18:39:32 +08:00
sign the gen emu script too
This commit is contained in:
parent
fbaad96afc
commit
41a3adfa33
@ -9,9 +9,16 @@ set "build_temp_dir=build\tmp\win"
|
|||||||
set "tool_name=generate_emu_config"
|
set "tool_name=generate_emu_config"
|
||||||
set "icon_file=icon\Froyoshark-Enkel-Steam.ico"
|
set "icon_file=icon\Froyoshark-Enkel-Steam.ico"
|
||||||
set "main_file=generate_emu_config.py"
|
set "main_file=generate_emu_config.py"
|
||||||
|
set "signer_tool=..\..\third-party\build\win\cert\sign_helper.bat"
|
||||||
|
|
||||||
set /a last_code=0
|
set /a last_code=0
|
||||||
|
|
||||||
|
if not exist "%signer_tool%" (
|
||||||
|
1>&2 echo "[X] signing tool wasn't found"
|
||||||
|
set /a last_code=1
|
||||||
|
goto :script_end
|
||||||
|
)
|
||||||
|
|
||||||
if exist "%out_dir%" (
|
if exist "%out_dir%" (
|
||||||
rmdir /s /q "%out_dir%"
|
rmdir /s /q "%out_dir%"
|
||||||
)
|
)
|
||||||
@ -29,6 +36,9 @@ pyinstaller "%main_file%" --distpath "%out_dir%" -y --clean --onedir --name "%to
|
|||||||
set /a last_code=1
|
set /a last_code=1
|
||||||
goto :script_end
|
goto :script_end
|
||||||
)
|
)
|
||||||
|
for /f "usebackq tokens=* delims=" %%A in ('"%main_file%"') do (
|
||||||
|
call "%signer_tool%" "%out_dir%\%tool_name%\%%~nA.exe"
|
||||||
|
)
|
||||||
|
|
||||||
copy /y "steam_default_icon_locked.jpg" "%out_dir%\%tool_name%\"
|
copy /y "steam_default_icon_locked.jpg" "%out_dir%\%tool_name%\"
|
||||||
copy /y "steam_default_icon_unlocked.jpg" "%out_dir%\%tool_name%\"
|
copy /y "steam_default_icon_unlocked.jpg" "%out_dir%\%tool_name%\"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user