Skip to content

Commit a2d1379

Browse files
Added context menu option and rollded to 1.2.0
1 parent 04bba66 commit a2d1379

File tree

4 files changed

+596
-358
lines changed

4 files changed

+596
-358
lines changed

Compile.bat

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ REM Script 1: Wormhole
1919
set "WORMHOLE_SCRIPT=wormhole.py"
2020
set "WORMHOLE_ICON=%SCRIPT_DIR%\Icons\Wormhole_Icon.ico"
2121
set "WORMHOLE_BUILD_NAME=wormhole"
22-
REM (Example) --add-data "path\to\file;destination\folder"
23-
REM set "DATA_1=%SCRIPT_DIR%\assets\config.json;."
24-
REM set "DATA_2=%SCRIPT_DIR%\assets\images;images"
22+
REM Add data for bundled resources
23+
set "DATA_1=%SCRIPT_DIR%\Icons;Icons"
24+
set "DATA_2=%SCRIPT_DIR%\fonts;fonts"
2525
REM ===================================================================
2626
REM ================== SCRIPT EXECUTION (No Need to Edit) =============
2727
REM ===================================================================
@@ -139,6 +139,8 @@ if /I "%COMPILE_WORMHOLE%" == "YES" (
139139
--icon "%WORMHOLE_ICON%" ^
140140
--clean ^
141141
!HIDDEN_IMPORTS! ^
142+
--add-data "%DATA_1%" ^
143+
--add-data "%DATA_2%" ^
142144
--distpath "%OUTPUT_DIR%" ^
143145
--workpath "%LOG_DIR%\build\%WORMHOLE_BUILD_NAME%" ^
144146
--specpath "%LOG_DIR%" ^

Extras/Wormhole_Setup.iss

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33
; Non-commercial use only
44
#define MyAppName "Wormhole"
5-
#define MyAppVersion "1.1.1"
5+
#define MyAppVersion "1.2.0"
66
#define MyAppPublisher "Nova Foundry"
77
#define MyAppURL "novafoundry.ca/wormhole"
88
#define MyAppExeName "wormhole.exe"
@@ -55,8 +55,12 @@ Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
5555
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
5656

5757
[Run]
58+
Filename: "{app}\{#MyAppExeName}"; Parameters: "--register"; Description: "Register context menu"; Flags: runhidden
5859
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent runascurrentuser
5960

61+
[UninstallRun]
62+
Filename: "{app}\{#MyAppExeName}"; Parameters: "--unregister"; RunOnceId: "UnregisterContextMenu"; Flags: runhidden
63+
6064
[Code]
6165
var
6266
InstalledPandoc: Boolean;

wormhole.exe

2.33 MB
Binary file not shown.

0 commit comments

Comments
 (0)