Skip to content

Commit 27c2a81

Browse files
committed
Merge branch 'development/pre-release' into release/latest
2 parents 45e4eed + 8d6bdf2 commit 27c2a81

File tree

3 files changed

+50
-0
lines changed

3 files changed

+50
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,3 +160,6 @@ cython_debug/
160160
# and can be added to the global gitignore or merged into this file. For a more nuclear
161161
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
162162
#.idea/
163+
164+
# WiX Toolset build artifacts
165+
*.wixpdb

BunkrDownloaderPortable.wxs

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
2+
<Package Name="Bunkr Downloader Portable GUI" Language="1033" Version="1.2.0" Manufacturer="ZeroHackz" UpgradeCode="f25e950d-edce-4c1c-a175-c296a196897c" InstallerVersion="200">
3+
<MajorUpgrade DowngradeErrorMessage="A newer version of Bunkr Downloader Portable GUI is already installed." />
4+
<MediaTemplate EmbedCab="yes" />
5+
6+
<Feature Id="ProductFeature" Title="BunkrDownloader" Level="1">
7+
<ComponentGroupRef Id="ProductComponents" />
8+
<ComponentRef Id="ApplicationShortcut" />
9+
</Feature>
10+
11+
<Icon Id="icon.ico" SourceFile="misc\gui\icons\icon.ico" />
12+
<Property Id="ARPPRODUCTICON" Value="icon.ico" />
13+
14+
15+
16+
<DirectoryRef Id="ApplicationProgramsFolder">
17+
<Component Id="ApplicationShortcut">
18+
<Shortcut Id="ApplicationStartMenuShortcut" Name="Bunkr Downloader" Description="Bunkr Downloader GUI" Target="[INSTALLFOLDER]BunkrDownloaderPortableGUI.exe" WorkingDirectory="INSTALLFOLDER" Icon="icon.ico" />
19+
<RemoveFolder Id="ApplicationProgramsFolder" On="uninstall" />
20+
<RegistryValue Root="HKCU" Key="Software\ZeroHackz\BunkrDownloaderPortableGUI" Name="installed" Type="integer" Value="1" KeyPath="yes" />
21+
</Component>
22+
</DirectoryRef>
23+
24+
<ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
25+
<!-- This is where you add all the files from your 'dist' folder -->
26+
<Component>
27+
<File Id="BunkrDownloaderPortableGUI.exe" Source="dist\BunkrDownloaderPortableGUI.exe" />
28+
</Component>
29+
<!-- If your 'dist' folder has other files or folders, you need to add them here too -->
30+
</ComponentGroup>
31+
32+
<StandardDirectory Id="ProgramFilesFolder">
33+
<Directory Id="INSTALLFOLDER" Name="BunkrDownloaderPortableGUI" />
34+
</StandardDirectory>
35+
<StandardDirectory Id="ProgramMenuFolder">
36+
<Directory Id="ApplicationProgramsFolder" Name="Bunkr Downloader Portable GUI" />
37+
</StandardDirectory>
38+
</Package>
39+
</Wix>

build.bat

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@ if %ERRORLEVEL% NEQ 0 (
3939
exit /b 1
4040
)
4141

42+
echo.
43+
echo Creating MSI installer...
44+
if exist "C:\Program Files\WiX Toolset v6.0\bin\wix.exe" (
45+
"C:\Program Files\WiX Toolset v6.0\bin\wix.exe" build BunkrDownloaderPortable.wxs -o dist\BunkrDownloaderPortable.msi
46+
) else (
47+
echo WiX Toolset v6.0 not found. Skipping MSI creation.
48+
)
49+
4250
echo.
4351
echo Build successful!
4452
echo The executable can be found in the 'dist' folder: dist\BunkrDownloaderPortableGUI.exe

0 commit comments

Comments
 (0)