diff --git a/_chver.sh b/_chver.sh index 32eca302..a149b662 100755 --- a/_chver.sh +++ b/_chver.sh @@ -33,7 +33,5 @@ _EOF # First run sed to substitute our variable in the sed command file sed -i -e "s/@@MAJOR@@/$MAJOR/g" -e "s/@@MINOR@@/$MINOR/g" cmd.sed sed -b -i -f cmd.sed src/rufus.rc -sed -b -i -f cmd.sed res/appstore/Package.appxmanifest -sed -b -i -f cmd.sed res/appstore/packme.cmd rm cmd.sed source ./bootstrap.sh diff --git a/_pre-commit.sh b/_pre-commit.sh index 15ccb63a..12469c41 100755 --- a/_pre-commit.sh +++ b/_pre-commit.sh @@ -38,9 +38,7 @@ _EOF sed -i -e "s/@@BUILD@@/$BUILD/g" cmd.sed # Run sed to update the nano version sed -b -i -f cmd.sed src/rufus.rc -sed -b -i -f cmd.sed res/appstore/Package.appxmanifest # NB: we need to run git add else the modified files may be ignored git add src/rufus.rc -git add res/appstore/Package.appxmanifest rm cmd.sed diff --git a/res/appstore/Package.StoreAssociation.xml b/res/appstore/Package.StoreAssociation.xml deleted file mode 100644 index ea5c04d4..00000000 --- a/res/appstore/Package.StoreAssociation.xml +++ /dev/null @@ -1,370 +0,0 @@ - - - CN=7AC86D13-3E5A-491A-ADD5-80095C212740 - Akeo Consulting - MSA - http://www.w3.org/2001/04/xmlenc#sha256 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 19453.net.Rufus - - Rufus - - - - \ No newline at end of file diff --git a/res/appstore/Package.appxmanifest b/res/appstore/Package.appxmanifest deleted file mode 100644 index 1b5a5251..00000000 --- a/res/appstore/Package.appxmanifest +++ /dev/null @@ -1,95 +0,0 @@ - - - - - - - - Rufus - Akeo Consulting - Images\StoreLogo.png - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - UTF-8 - - - - - - - - - diff --git a/res/appstore/RufusAppxManifest.xml b/res/appstore/RufusAppxManifest.xml new file mode 100644 index 00000000..d55f3737 --- /dev/null +++ b/res/appstore/RufusAppxManifest.xml @@ -0,0 +1,65 @@ + + + + + Rufus + Akeo Consulting + Images\StoreLogo.png + + + + + + + + + + + + + + + + + + + + + + UTF-8 + + + + + + + + \ No newline at end of file diff --git a/res/appstore/ScaleAppxManifest.xml b/res/appstore/ScaleAppxManifest.xml new file mode 100644 index 00000000..d4251eda --- /dev/null +++ b/res/appstore/ScaleAppxManifest.xml @@ -0,0 +1,26 @@ + + + + + true + Rufus + Akeo Consulting + Images\StoreLogo.png + + + + + + + + diff --git a/res/appstore/appstore.sln b/res/appstore/appstore.sln deleted file mode 100644 index 66648f17..00000000 --- a/res/appstore/appstore.sln +++ /dev/null @@ -1,144 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29215.179 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "rufus", "..\..\.vs\rufus.vcxproj", "{731858A7-0303-4988-877B-9C0DD6471864}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ms-sys", "..\..\.vs\ms-sys.vcxproj", "{2B1D078D-8EB4-4398-9CA4-23457265A7F6}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "syslinux-libfat", "..\..\.vs\syslinux-libfat.vcxproj", "{8390DCE0-859D-4F57-AD9C-AAEAC4D77EEF}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "syslinux-libinstaller", "..\..\.vs\syslinux-libinstaller.vcxproj", "{266502AC-CD74-4581-B707-938A7D05AD7A}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "syslinux-win", "..\..\.vs\syslinux-win.vcxproj", "{7D2E9784-DDF7-4988-A887-CF099BC3B340}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcdio-iso9660", "..\..\.vs\libcdio-iso9660.vcxproj", "{D4E80F35-2604-40AC-B436-97B052ECB572}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcdio-udf", "..\..\.vs\libcdio-udf.vcxproj", "{0CEC40A6-A195-4BE5-A88B-0AB00EB142EC}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libcdio-driver", "..\..\.vs\libcdio-driver.vcxproj", "{FA1B1093-BA86-410A-B7A0-7A54C605F812}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "getopt", "..\..\.vs\getopt.vcxproj", "{AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "bled", "..\..\.vs\bled.vcxproj", "{FB6D52D4-A2F8-C358-DB85-BBCAECFDDD7D}" -EndProject -Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ext2fs", "..\..\.vs\ext2fs.vcxproj", "{B01F5886-2B39-4B66-B65C-6427135B6A02}" -EndProject -Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "appstore", "appstore.wapproj", "{9440518F-38FE-43D9-9151-A26618E8C978}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Release|arm = Release|arm - Release|arm64 = Release|arm64 - Release|x64 = Release|x64 - Release|x86 = Release|x86 - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {731858A7-0303-4988-877B-9C0DD6471864}.Release|arm.ActiveCfg = Release|ARM - {731858A7-0303-4988-877B-9C0DD6471864}.Release|arm.Build.0 = Release|ARM - {731858A7-0303-4988-877B-9C0DD6471864}.Release|arm64.ActiveCfg = Release|ARM64 - {731858A7-0303-4988-877B-9C0DD6471864}.Release|arm64.Build.0 = Release|ARM64 - {731858A7-0303-4988-877B-9C0DD6471864}.Release|x64.ActiveCfg = Release|x64 - {731858A7-0303-4988-877B-9C0DD6471864}.Release|x64.Build.0 = Release|x64 - {731858A7-0303-4988-877B-9C0DD6471864}.Release|x86.ActiveCfg = Release|Win32 - {731858A7-0303-4988-877B-9C0DD6471864}.Release|x86.Build.0 = Release|Win32 - {2B1D078D-8EB4-4398-9CA4-23457265A7F6}.Release|arm.ActiveCfg = Release|ARM - {2B1D078D-8EB4-4398-9CA4-23457265A7F6}.Release|arm.Build.0 = Release|ARM - {2B1D078D-8EB4-4398-9CA4-23457265A7F6}.Release|arm64.ActiveCfg = Release|ARM64 - {2B1D078D-8EB4-4398-9CA4-23457265A7F6}.Release|arm64.Build.0 = Release|ARM64 - {2B1D078D-8EB4-4398-9CA4-23457265A7F6}.Release|x64.ActiveCfg = Release|x64 - {2B1D078D-8EB4-4398-9CA4-23457265A7F6}.Release|x64.Build.0 = Release|x64 - {2B1D078D-8EB4-4398-9CA4-23457265A7F6}.Release|x86.ActiveCfg = Release|Win32 - {2B1D078D-8EB4-4398-9CA4-23457265A7F6}.Release|x86.Build.0 = Release|Win32 - {8390DCE0-859D-4F57-AD9C-AAEAC4D77EEF}.Release|arm.ActiveCfg = Release|ARM - {8390DCE0-859D-4F57-AD9C-AAEAC4D77EEF}.Release|arm.Build.0 = Release|ARM - {8390DCE0-859D-4F57-AD9C-AAEAC4D77EEF}.Release|arm64.ActiveCfg = Release|ARM64 - {8390DCE0-859D-4F57-AD9C-AAEAC4D77EEF}.Release|arm64.Build.0 = Release|ARM64 - {8390DCE0-859D-4F57-AD9C-AAEAC4D77EEF}.Release|x64.ActiveCfg = Release|x64 - {8390DCE0-859D-4F57-AD9C-AAEAC4D77EEF}.Release|x64.Build.0 = Release|x64 - {8390DCE0-859D-4F57-AD9C-AAEAC4D77EEF}.Release|x86.ActiveCfg = Release|Win32 - {8390DCE0-859D-4F57-AD9C-AAEAC4D77EEF}.Release|x86.Build.0 = Release|Win32 - {266502AC-CD74-4581-B707-938A7D05AD7A}.Release|arm.ActiveCfg = Release|ARM - {266502AC-CD74-4581-B707-938A7D05AD7A}.Release|arm.Build.0 = Release|ARM - {266502AC-CD74-4581-B707-938A7D05AD7A}.Release|arm64.ActiveCfg = Release|ARM64 - {266502AC-CD74-4581-B707-938A7D05AD7A}.Release|arm64.Build.0 = Release|ARM64 - {266502AC-CD74-4581-B707-938A7D05AD7A}.Release|x64.ActiveCfg = Release|x64 - {266502AC-CD74-4581-B707-938A7D05AD7A}.Release|x64.Build.0 = Release|x64 - {266502AC-CD74-4581-B707-938A7D05AD7A}.Release|x86.ActiveCfg = Release|Win32 - {266502AC-CD74-4581-B707-938A7D05AD7A}.Release|x86.Build.0 = Release|Win32 - {7D2E9784-DDF7-4988-A887-CF099BC3B340}.Release|arm.ActiveCfg = Release|ARM - {7D2E9784-DDF7-4988-A887-CF099BC3B340}.Release|arm.Build.0 = Release|ARM - {7D2E9784-DDF7-4988-A887-CF099BC3B340}.Release|arm64.ActiveCfg = Release|ARM64 - {7D2E9784-DDF7-4988-A887-CF099BC3B340}.Release|arm64.Build.0 = Release|ARM64 - {7D2E9784-DDF7-4988-A887-CF099BC3B340}.Release|x64.ActiveCfg = Release|x64 - {7D2E9784-DDF7-4988-A887-CF099BC3B340}.Release|x64.Build.0 = Release|x64 - {7D2E9784-DDF7-4988-A887-CF099BC3B340}.Release|x86.ActiveCfg = Release|Win32 - {7D2E9784-DDF7-4988-A887-CF099BC3B340}.Release|x86.Build.0 = Release|Win32 - {D4E80F35-2604-40AC-B436-97B052ECB572}.Release|arm.ActiveCfg = Release|ARM - {D4E80F35-2604-40AC-B436-97B052ECB572}.Release|arm.Build.0 = Release|ARM - {D4E80F35-2604-40AC-B436-97B052ECB572}.Release|arm64.ActiveCfg = Release|ARM64 - {D4E80F35-2604-40AC-B436-97B052ECB572}.Release|arm64.Build.0 = Release|ARM64 - {D4E80F35-2604-40AC-B436-97B052ECB572}.Release|x64.ActiveCfg = Release|x64 - {D4E80F35-2604-40AC-B436-97B052ECB572}.Release|x64.Build.0 = Release|x64 - {D4E80F35-2604-40AC-B436-97B052ECB572}.Release|x86.ActiveCfg = Release|Win32 - {D4E80F35-2604-40AC-B436-97B052ECB572}.Release|x86.Build.0 = Release|Win32 - {0CEC40A6-A195-4BE5-A88B-0AB00EB142EC}.Release|arm.ActiveCfg = Release|ARM - {0CEC40A6-A195-4BE5-A88B-0AB00EB142EC}.Release|arm.Build.0 = Release|ARM - {0CEC40A6-A195-4BE5-A88B-0AB00EB142EC}.Release|arm64.ActiveCfg = Release|ARM64 - {0CEC40A6-A195-4BE5-A88B-0AB00EB142EC}.Release|arm64.Build.0 = Release|ARM64 - {0CEC40A6-A195-4BE5-A88B-0AB00EB142EC}.Release|x64.ActiveCfg = Release|x64 - {0CEC40A6-A195-4BE5-A88B-0AB00EB142EC}.Release|x64.Build.0 = Release|x64 - {0CEC40A6-A195-4BE5-A88B-0AB00EB142EC}.Release|x86.ActiveCfg = Release|Win32 - {0CEC40A6-A195-4BE5-A88B-0AB00EB142EC}.Release|x86.Build.0 = Release|Win32 - {FA1B1093-BA86-410A-B7A0-7A54C605F812}.Release|arm.ActiveCfg = Release|ARM - {FA1B1093-BA86-410A-B7A0-7A54C605F812}.Release|arm.Build.0 = Release|ARM - {FA1B1093-BA86-410A-B7A0-7A54C605F812}.Release|arm64.ActiveCfg = Release|ARM64 - {FA1B1093-BA86-410A-B7A0-7A54C605F812}.Release|arm64.Build.0 = Release|ARM64 - {FA1B1093-BA86-410A-B7A0-7A54C605F812}.Release|x64.ActiveCfg = Release|x64 - {FA1B1093-BA86-410A-B7A0-7A54C605F812}.Release|x64.Build.0 = Release|x64 - {FA1B1093-BA86-410A-B7A0-7A54C605F812}.Release|x86.ActiveCfg = Release|Win32 - {FA1B1093-BA86-410A-B7A0-7A54C605F812}.Release|x86.Build.0 = Release|Win32 - {AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Release|arm.ActiveCfg = Release|ARM - {AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Release|arm.Build.0 = Release|ARM - {AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Release|arm64.ActiveCfg = Release|ARM64 - {AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Release|arm64.Build.0 = Release|ARM64 - {AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Release|x64.ActiveCfg = Release|x64 - {AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Release|x64.Build.0 = Release|x64 - {AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Release|x86.ActiveCfg = Release|Win32 - {AE83E1B4-CE06-47EE-B7A3-C3A1D7C2D71E}.Release|x86.Build.0 = Release|Win32 - {FB6D52D4-A2F8-C358-DB85-BBCAECFDDD7D}.Release|arm.ActiveCfg = Release|ARM - {FB6D52D4-A2F8-C358-DB85-BBCAECFDDD7D}.Release|arm.Build.0 = Release|ARM - {FB6D52D4-A2F8-C358-DB85-BBCAECFDDD7D}.Release|arm64.ActiveCfg = Release|ARM64 - {FB6D52D4-A2F8-C358-DB85-BBCAECFDDD7D}.Release|arm64.Build.0 = Release|ARM64 - {FB6D52D4-A2F8-C358-DB85-BBCAECFDDD7D}.Release|x64.ActiveCfg = Release|x64 - {FB6D52D4-A2F8-C358-DB85-BBCAECFDDD7D}.Release|x64.Build.0 = Release|x64 - {FB6D52D4-A2F8-C358-DB85-BBCAECFDDD7D}.Release|x86.ActiveCfg = Release|Win32 - {FB6D52D4-A2F8-C358-DB85-BBCAECFDDD7D}.Release|x86.Build.0 = Release|Win32 - {B01F5886-2B39-4B66-B65C-6427135B6A02}.Release|arm.ActiveCfg = Release|ARM - {B01F5886-2B39-4B66-B65C-6427135B6A02}.Release|arm.Build.0 = Release|ARM - {B01F5886-2B39-4B66-B65C-6427135B6A02}.Release|arm64.ActiveCfg = Release|ARM64 - {B01F5886-2B39-4B66-B65C-6427135B6A02}.Release|arm64.Build.0 = Release|ARM64 - {B01F5886-2B39-4B66-B65C-6427135B6A02}.Release|x64.ActiveCfg = Release|x64 - {B01F5886-2B39-4B66-B65C-6427135B6A02}.Release|x64.Build.0 = Release|x64 - {B01F5886-2B39-4B66-B65C-6427135B6A02}.Release|x86.ActiveCfg = Release|Win32 - {B01F5886-2B39-4B66-B65C-6427135B6A02}.Release|x86.Build.0 = Release|Win32 - {9440518F-38FE-43D9-9151-A26618E8C978}.Release|arm.ActiveCfg = Release|ARM - {9440518F-38FE-43D9-9151-A26618E8C978}.Release|arm.Build.0 = Release|ARM - {9440518F-38FE-43D9-9151-A26618E8C978}.Release|arm.Deploy.0 = Release|ARM - {9440518F-38FE-43D9-9151-A26618E8C978}.Release|arm64.ActiveCfg = Release|ARM64 - {9440518F-38FE-43D9-9151-A26618E8C978}.Release|arm64.Build.0 = Release|ARM64 - {9440518F-38FE-43D9-9151-A26618E8C978}.Release|arm64.Deploy.0 = Release|ARM64 - {9440518F-38FE-43D9-9151-A26618E8C978}.Release|x64.ActiveCfg = Release|x64 - {9440518F-38FE-43D9-9151-A26618E8C978}.Release|x64.Build.0 = Release|x64 - {9440518F-38FE-43D9-9151-A26618E8C978}.Release|x64.Deploy.0 = Release|x64 - {9440518F-38FE-43D9-9151-A26618E8C978}.Release|x86.ActiveCfg = Release|x86 - {9440518F-38FE-43D9-9151-A26618E8C978}.Release|x86.Build.0 = Release|x86 - {9440518F-38FE-43D9-9151-A26618E8C978}.Release|x86.Deploy.0 = Release|x86 - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {CCF051E2-A27D-48B0-94ED-ADC18A40E0DB} - EndGlobalSection -EndGlobal diff --git a/res/appstore/appstore.wapproj b/res/appstore/appstore.wapproj deleted file mode 100644 index 6eb0a36b..00000000 --- a/res/appstore/appstore.wapproj +++ /dev/null @@ -1,154 +0,0 @@ - - - - 15.0 - - - - Debug - x86 - - - Release - x86 - - - Debug - x64 - - - Release - x64 - - - Debug - ARM - - - Release - ARM - - - Debug - ARM64 - - - Release - ARM64 - - - - "C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64\signtool" sign /v /sha1 9ce9a71ccab3b38a74781b975f1c228222cf7d3b /fd SHA256 /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp $(OutDir)rufus.exe - - - $(MSBuildExtensionsPath)\Microsoft\DesktopBridge\ - - - - 9440518f-38fe-43d9-9151-a26618e8c978 - 10.0.19041.0 - 10.0.14393.0 - en-US - True - 5B703405D71796B4F4D3217C39B48767DB855E9D - False - http://sha256timestamp.ws.symantec.com/sha256/timestamp - SHA256 - False - False - x86|x64|arm|arm64 - 0 - ..\..\.vs\rufus.vcxproj - - - Always - $(SolutionDir)arm\Debug\ - - - Always - $(SolutionDir)arm64\Debug\ - - - Always - $(SolutionDir)x86\Debug\ - - - Always - $(SolutionDir)x64\Debug\ - - - Always - $(SolutionDir)arm\Release\ - - - Always - $(SolutionDir)arm64\Release\ - - - Always - $(SolutionDir)x86\Release\ - - - Always - $(SolutionDir)x64\Release\ - - - - Designer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/res/appstore/appstore.wapproj.user b/res/appstore/appstore.wapproj.user deleted file mode 100644 index bbaa8b61..00000000 --- a/res/appstore/appstore.wapproj.user +++ /dev/null @@ -1,41 +0,0 @@ - - - - ..\icons\rufus-512.png - ..\icons\rufus-512.png - ..\icons\rufus-512.png - ..\icons\rufus-512.png - ..\icons\rufus-512.png - ..\icons\rufus-512.png - ..\icons\rufus-512.png - ..\icons\rufus-512.png - True - x86|x64|arm|arm64 - True - StoreOnly - - - AppHostLocalDebugger - False - NativeOnly - NativeOnly - - - AppHostLocalDebugger - False - NativeOnly - NativeOnly - - - AppHostLocalDebugger - False - NativeOnly - NativeOnly - - - AppHostLocalDebugger - False - NativeOnly - NativeOnly - - \ No newline at end of file diff --git a/res/appstore/packme.cmd b/res/appstore/packme.cmd index 11aab563..7e23749e 100644 --- a/res/appstore/packme.cmd +++ b/res/appstore/packme.cmd @@ -1,15 +1,52 @@ +@rem This script creates the Rufus appxupload for upload to the Windows Store. +@rem It attemps to follow as closely as possible what Visual Studio does. @echo off setlocal EnableExtensions DisableDelayedExpansion -set VERSION=3.17 +goto main + +:ReplaceTokenInFile +setlocal EnableDelayedExpansion +set FILE=%~1 +set TOKEN=%~2 +set VALUE=%~3 +for /f "delims=" %%i in ('type %FILE% ^& break ^> %FILE%') do ( + set "line=%%i" + >>%FILE% echo(!line:%TOKEN%=%VALUE%! +) +endlocal +exit /B 0 + +:main del /q *.appx >NUL 2>&1 del /q *.appxbundle >NUL 2>&1 del /q *.map >NUL 2>&1 -set WDK_PATH=C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64 +set WDK_PATH=C:\Program Files (x86)\Windows Kits\10\bin\10.0.20348.0\x64 +set ZIP_PATH=C:\Program Files\7-Zip +set SIGNATURE_SHA1=9ce9a71ccab3b38a74781b975f1c228222cf7d3b set MSBUILD_PATH=C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin set MANIFEST=AppxManifest.xml set ARCHS=x86 x64 arm arm64 +set DEFAULT_SCALE=200 +set OTHER_SCALES=100 125 150 400 +set SCALED_IMAGES=LargeTile SmallTile Square44x44Logo Square150x150Logo StoreLogo Wide310x150Logo +set PACKAGE_IMAGES=^ + Square44x44Logo.altform-lightunplated_targetsize-16.png^ + Square44x44Logo.altform-lightunplated_targetsize-24.png^ + Square44x44Logo.altform-lightunplated_targetsize-256.png^ + Square44x44Logo.altform-lightunplated_targetsize-32.png^ + Square44x44Logo.altform-lightunplated_targetsize-48.png^ + Square44x44Logo.altform-unplated_targetsize-16.png^ + Square44x44Logo.altform-unplated_targetsize-256.png^ + Square44x44Logo.altform-unplated_targetsize-32.png^ + Square44x44Logo.altform-unplated_targetsize-48.png^ + Square44x44Logo.targetsize-16.png^ + Square44x44Logo.targetsize-24.png^ + Square44x44Logo.targetsize-24_altform-unplated.png^ + Square44x44Logo.targetsize-256.png^ + Square44x44Logo.targetsize-32.png^ + Square44x44Logo.targetsize-48.png rem if you don't set the temp/tmp you get: rem error MSB6001: Invalid command line switch for "CL.exe". System.ArgumentExcep Key being added: 'TEMP' @@ -17,59 +54,99 @@ set temp= set tmp= cd /d "%~dp0" -setlocal EnableDelayedExpansion -set FILES_TO_SIGN= + for %%a in (%ARCHS%) do ( - echo [Building %%a] - "%MSBUILD_PATH%\MSBuild" ..\..\rufus.sln /m /nologo /verbosity:minimal /t:Clean,Build /p:Configuration=Release,Platform=%%a - if ERRORLEVEL 1 goto out - echo. - set FILES_TO_SIGN=!FILES_TO_SIGN! "..\..\%%a\Release\rufus.exe" + if not exist rufus_%%a.exe ( + echo rufus_%%a.exe is missing from the current directory + goto out + ) ) -"%WDK_PATH%\SignTool" sign /v /sha1 9ce9a71ccab3b38a74781b975f1c228222cf7d3b /fd SHA256 /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp %FILES_TO_SIGN% + +rem Populate the version from the executable +set target=%~dp0rufus_x64.exe +set target=%target:\=\\% +wmic datafile where "name='%target%'" get version | find /v "Version" > version.txt +set /p VERSION= bundle.map for %%a in (%ARCHS%) do ( - echo Creating %%a appx... + echo. + echo Creating Rufus_%VERSION%_%%a.appx... cd /d "%~dp0" - echo "Rufus-%%a.appx" "Rufus-%%a.appx">> bundle.map + echo "Rufus_%VERSION%_%%a.appx" "Rufus_%VERSION%_%%a.appx">> bundle.map mkdir %%a >NUL 2>&1 - copy %MANIFEST% %%a\%MANIFEST% >NUL 2>&1 cd %%a - for /f "delims=" %%i in ('type %MANIFEST% ^& break ^> %MANIFEST%') do ( - set "line=%%i" - setlocal EnableDelayedExpansion - >>%MANIFEST% echo(!line:@ARCH@=%%a! - endlocal + mkdir Images >NUL 2>&1 + for %%i in (%PACKAGE_IMAGES%) do ( + copy "..\Images\%%i" Images\ >NUL 2>&1 ) - mkdir Assets >NUL 2>&1 - copy "..\..\icons\rufus-44.png" "Assets\Square44x44Logo.png" >NUL 2>&1 - copy "..\..\icons\rufus-48.png" "Assets\Square44x44Logo.targetsize-48.png" >NUL 2>&1 - copy "..\..\icons\rufus-48.png" "Assets\Square44x44Logo.targetsize-48_altform-unplated.png" >NUL 2>&1 - copy "..\..\icons\rufus-150.png" "Assets\Square150x150Logo.png" >NUL 2>&1 - copy "..\..\..\%%a\Release\rufus.exe" "rufus.exe" >NUL 2>&1 - "%WDK_PATH%\MakePri" createconfig /o /dq en-US /cf priconfig.xml - "%WDK_PATH%\MakePri" new /o /pr . /cf priconfig.xml - "%WDK_PATH%\MakeAppx" pack /o /d . /p ../Rufus-%%a.appx + for %%i in (%SCALED_IMAGES%) do ( + copy "..\Images\%%i.scale-%DEFAULT_SCALE%.png" Images\ >NUL 2>&1 + ) + mkdir rufus + copy "..\rufus_%%a.exe" "rufus\rufus.exe" >NUL 2>&1 + copy /y NUL "rufus\rufus.app" >NUL 2>&1 + rem When invoking MakePri, it is very important that you don't have files such as AppxManifest.xml or priconfig.xml + rem in the directory referenced by /pr or you may get ERROR_MRM_DUPLICATE_ENTRY when validating the submission as, + rem for instance, the 'AppxManifest.xml' from the 100% scale bundle will conflict the one from the x64 bundle. + "%WDK_PATH%\MakePri" createconfig /o /pv 10.0.0 /dq lang-en-US_scale-%DEFAULT_SCALE%_theme-light /cf ..\priconfig.xml + "%WDK_PATH%\MakePri" new /o /pr . /cf ..\priconfig.xml + del /q ..\priconfig.xml + copy ..\RufusAppxManifest.xml %MANIFEST% >NUL 2>&1 + call:ReplaceTokenInFile %MANIFEST% @ARCH@ %%a + call:ReplaceTokenInFile %MANIFEST% @VERSION@ %VERSION% + "%WDK_PATH%\MakeAppx" pack /o /d . /p ..\Rufus_%VERSION%_%%a.appx if ERRORLEVEL 1 goto out ) +for %%a in (%OTHER_SCALES%) do ( + echo. + echo Creating Rufus_%VERSION%_scale-%%a.appx... + cd /d "%~dp0" + echo "Rufus_%VERSION%_scale-%%a.appx" "Rufus_%VERSION%_scale-%%a.appx">> bundle.map + mkdir %%a >NUL 2>&1 + cd %%a + mkdir Images >NUL 2>&1 + for %%i in (%SCALED_IMAGES%) do ( + copy "..\Images\%%i.scale-%%a.png" Images\ >NUL 2>&1 + ) + "%WDK_PATH%\MakePri" createconfig /o /pv 10.0.0 /dq lang-en-US_scale-%%a_theme-light /cf ..\priconfig.xml + "%WDK_PATH%\MakePri" new /o /pr . /cf ..\priconfig.xml + del /q ..\priconfig.xml + copy ..\ScaleAppxManifest.xml %MANIFEST% >NUL 2>&1 + call:ReplaceTokenInFile %MANIFEST% @SCALE@ %%a + call:ReplaceTokenInFile %MANIFEST% @VERSION@ %VERSION% + "%WDK_PATH%\MakeAppx" pack /o /d . /p ..\Rufus_%VERSION%_scale-%%a.appx +) + +setlocal EnableDelayedExpansion +set ALL_ARCHS= +for %%a in (%ARCHS%) do set ALL_ARCHS=!ALL_ARCHS!_%%a cd /d "%~dp0" -"%WDK_PATH%\SignTool" sign /v /sha1 9ce9a71ccab3b38a74781b975f1c228222cf7d3b /fd SHA256 /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp *.appx -if ERRORLEVEL 1 goto out -"%WDK_PATH%\MakeAppx" bundle /f bundle.map /p Rufus-%VERSION%.appxbundle -"%WDK_PATH%\SignTool" sign /v /sha1 9ce9a71ccab3b38a74781b975f1c228222cf7d3b /fd SHA256 /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp Rufus-%VERSION%.appxbundle +"%WDK_PATH%\MakeAppx" bundle /f bundle.map /bv %VERSION% /p Rufus_%VERSION%%ALL_ARCHS%.appxbundle +rem Visual Studio zips the appxbundle into an appxupload for store upload, so we do the same... +"%ZIP_PATH%\7z" a -tzip Rufus_%VERSION%%ALL_ARCHS%_bundle.appxupload Rufus_%VERSION%%ALL_ARCHS%.appxbundle +endlocal :out cd /d "%~dp0" for %%a in (%ARCHS%) do ( rd /S /Q %%a >NUL 2>&1 ) +for %%a in (%OTHER_SCALES%) do ( + rd /S /Q %%a >NUL 2>&1 +) del /q *.map >NUL 2>&1 del /q *.appx >NUL 2>&1 -rename *.appxbundle *.appx >NUL 2>&1 +del /q *.appxbundle >NUL 2>&1 pause exit diff --git a/res/appstore/rufus/rufus.app b/res/appstore/rufus/rufus.app deleted file mode 100644 index e69de29b..00000000 diff --git a/src/rufus.rc b/src/rufus.rc index 385278a3..15539cf9 100644 --- a/src/rufus.rc +++ b/src/rufus.rc @@ -33,7 +33,7 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL IDD_DIALOG DIALOGEX 12, 12, 232, 326 STYLE DS_SETFONT | DS_MODALFRAME | DS_CENTER | WS_MINIMIZEBOX | WS_POPUP | WS_CAPTION | WS_SYSMENU EXSTYLE WS_EX_ACCEPTFILES -CAPTION "Rufus 3.17.1846" +CAPTION "Rufus 3.17.1847" FONT 9, "Segoe UI Symbol", 400, 0, 0x0 BEGIN LTEXT "Drive Properties",IDS_DRIVE_PROPERTIES_TXT,8,6,53,12,NOT WS_GROUP @@ -395,8 +395,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 3,17,1846,0 - PRODUCTVERSION 3,17,1846,0 + FILEVERSION 3,17,1847,0 + PRODUCTVERSION 3,17,1847,0 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -414,13 +414,13 @@ BEGIN VALUE "Comments", "https://rufus.ie" VALUE "CompanyName", "Akeo Consulting" VALUE "FileDescription", "Rufus" - VALUE "FileVersion", "3.17.1846" + VALUE "FileVersion", "3.17.1847" VALUE "InternalName", "Rufus" VALUE "LegalCopyright", "© 2011-2021 Pete Batard (GPL v3)" VALUE "LegalTrademarks", "https://www.gnu.org/licenses/gpl-3.0.html" VALUE "OriginalFilename", "rufus-3.17.exe" VALUE "ProductName", "Rufus" - VALUE "ProductVersion", "3.17.1846" + VALUE "ProductVersion", "3.17.1847" END END BLOCK "VarFileInfo"