2017-04-20 11:58:04 +00:00
@ echo off
set VERSION = 2.15
2017-05-14 12:22:16 +00:00
rem Make sure you don't have anything you don't want included in the package, as anything residing in the
rem current directory will be included, including any previous .appx, which makes for nice recursion...
del /q *.appx > NUL 2 >& 1
2017-05-14 13:32:09 +00:00
rem As per the link below, you need "altform-unplated" icons and run MakePri to get transparent icons:
2017-05-14 12:22:16 +00:00
rem https://social.msdn.microsoft.com/Forums/windowsapps/en-US/dc505f68-d120-43e3-a9e1-d7c77746d588/uwpdesktop-bridgeunplated-taskbar-icons-in-desktop-bridge-apps
mkdir Assets > NUL 2 >& 1
copy " ..\icon-set\rufus-44.png " " Assets\Square44x44Logo.png "
2017-05-14 13:32:09 +00:00
copy " ..\icon-set\rufus-48.png " " Assets\Square44x44Logo.targetsize-48.png "
copy " ..\icon-set\rufus-48.png " " Assets\Square44x44Logo.targetsize-48_altform-unplated.png "
2017-05-14 12:22:16 +00:00
copy " ..\icon-set\rufus-150.png " " Assets\Square150x150Logo.png "
copy " ..\..\rufus- %VERSION% .exe " " rufus.exe "
" C:\Program Files (x86)\Windows Kits\10\bin\x64\MakePri " createconfig /o /dq en-US /cf priconfig.xml
" C:\Program Files (x86)\Windows Kits\10\bin\x64\MakePri " new /o /pr . /cf priconfig.xml
" C:\Program Files (x86)\Windows Kits\10\bin\x64\MakeAppx " pack /o /d . /p Rufus-%VERSION% .appx
2017-04-20 11:58:04 +00:00
if ERRORLEVEL 1 goto out
" C:\Program Files (x86)\Windows Kits\10\bin\x64\SignTool " sign /v /sha1 5759b23dc8f45e9120a7317f306e5b6890b612f0 /fd SHA256 /tr http://timestamp.comodoca.com/rfc3161 /td SHA256 Rufus-%VERSION% .appx
: out
2017-05-14 12:22:16 +00:00
del /q rufus.exe
2017-05-14 13:32:09 +00:00
del /q priconfig.xml
del /q resources.pri
2017-05-14 12:22:16 +00:00
rmdir /s /q Assets
2017-04-20 11:58:04 +00:00
pause
exit