diff --git a/.gitignore b/.gitignore index 85f4eba9..36f4552d 100644 --- a/.gitignore +++ b/.gitignore @@ -293,3 +293,4 @@ __pycache__/ !/Build/AppxManifest.* !/Build/assetslayout.resfiles !/Build/priconfig.xml +!/Build/micasetup.json diff --git a/Build/Assets/Square44x44Logo.altform-unplated_targetsize-256.setup.png b/Build/Assets/Square44x44Logo.altform-unplated_targetsize-256.setup.png new file mode 100644 index 00000000..f8d2dc13 Binary files /dev/null and b/Build/Assets/Square44x44Logo.altform-unplated_targetsize-256.setup.png differ diff --git a/Build/Assets/Square44x44Logo.altform-unplated_targetsize-256.uninst.png b/Build/Assets/Square44x44Logo.altform-unplated_targetsize-256.uninst.png new file mode 100644 index 00000000..a1c502af Binary files /dev/null and b/Build/Assets/Square44x44Logo.altform-unplated_targetsize-256.uninst.png differ diff --git a/Build/micasetup.json b/Build/micasetup.json new file mode 100644 index 00000000..edebae94 --- /dev/null +++ b/Build/micasetup.json @@ -0,0 +1,43 @@ +{ + "Template": "${MicaDir}/template/default.7z", + "Package": "./QuickLook.7z", + "Output": "./${AppName}.exe", + "AppName": "QuickLook", + "KeyName": "QuickLook", + "ExeName": "QuickLook.exe", + "Publisher": "QL-Win", + "Version": "${Package}./${ExeName}|4", + "TargetFramework": "net472", + "Guid": "8B4A9CE5-67B5-4A94-81CB-3771F688FDEB", + "Favicon": "./Assets/Square44x44Logo.altform-unplated_targetsize-256.png", + "Icon": "./Assets/Square44x44Logo.altform-unplated_targetsize-256.setup.png", + "UnIcon": "./Assets/Square44x44Logo.altform-unplated_targetsize-256.uninst.png", + "LicenseFile": "../LICENSE-GPL.txt", + "License": null, + "LicenseType": null, + "RequestExecutionLevel": "admin", + "SingleInstanceMutex": null, + "IsCreateDesktopShortcut": true, + "IsCreateUninst": true, + "IsCreateStartMenu": true, + "IsPinToStartMenu": false, + "IsCreateQuickLaunch": true, + "IsCreateRegistryKeys": true, + "IsCreateAsAutoRun": false, + "IsCustomizeVisiableAutoRun": false, + "AutoRunLaunchCommand": "/autostart", + "IsUseFolderPickerPreferClassic": false, + "IsUseInstallPathPreferX86": false, + "IsUseRegistryPreferX86": null, + "IsAllowFullFolderSecurity": true, + "IsAllowFirewall": true, + "IsRefreshExplorer": true, + "IsInstallCertificate": false, + "IsEnableUninstallDelayUntilReboot": true, + "IsEnvironmentVariable": false, + "OverlayInstallRemoveExt": "exe,dll,pdb,config,winmd,txt,bat,ax,manifest,xshd", + "UnpackingPassword": null, + "MessageOfPage1": null, + "MessageOfPage2": null, + "MessageOfPage3": null +} diff --git a/QuickLook.Installer/Product.wxs b/QuickLook.Installer/Product.wxs index 9c22167b..306cb9a7 100644 --- a/QuickLook.Installer/Product.wxs +++ b/QuickLook.Installer/Product.wxs @@ -2,7 +2,7 @@ diff --git a/Scripts/pack-setup.ps1 b/Scripts/pack-setup.ps1 new file mode 100644 index 00000000..f40e5032 --- /dev/null +++ b/Scripts/pack-setup.ps1 @@ -0,0 +1,16 @@ +Set-Location ../Build + +Remove-Item .\QuickLook.7z -ErrorAction SilentlyContinue +7z a QuickLook.7z .\Package\* -t7z -mx=5 -mf=BCJ2 -r -y +makemica micasetup.json + +Write-Output "This file makes QuickLook portable." >> .\Package\portable.lock +7z a QuickLook.7z .\Package\portable.lock -t7z -mx=5 -mf=BCJ2 -r -y + +$version = git describe --always --tags --exclude latest +Remove-Item .\QuickLook-$version.7z -ErrorAction SilentlyContinue +Rename-Item .\QuickLook.7z QuickLook-$version.7z +Remove-Item .\QuickLook-$version.exe -ErrorAction SilentlyContinue +Rename-Item .\QuickLook.exe QuickLook-$version.exe + +pause