Skip to content
This repository was archived by the owner on Mar 22, 2018. It is now read-only.

Commit 3cc4082

Browse files
authored
Merge pull request #32 from AirQuick/win-py
Use py and static bat for windows
2 parents fb169e2 + db446ac commit 3cc4082

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build/windows/uget-chrome-wrapper.nsi

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,8 @@ Section "uget-chrome-wrapper (required)"
156156
; Replace \ by \\ in the installation path
157157
${StrRep} $0 "$INSTDIR" "\" "\\"
158158

159-
; Create the uget-chrome-wrapper.bat file
160-
FileOpen $9 $INSTDIR\uget-chrome-wrapper.bat w ;Opens a Empty File an fills it
161-
FileWrite $9 '@echo off$\r$\ncall python "$0\\uget-chrome-wrapper.py"$\r$\n'
162-
FileClose $9 ;Closes the filled file
159+
; Put the uget-chrome-wrapper.bat file
160+
File "..\..\uget-chrome-wrapper\windows\uget-chrome-wrapper.bat"
163161

164162
; Update the com.javahelps.ugetchromewrapper.json file
165163
FileOpen $9 $INSTDIR\com.javahelps.ugetchromewrapper.json w ;Opens a Empty File an fills it
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@echo off
2+
py "%~dp0uget-chrome-wrapper.py"

0 commit comments

Comments
 (0)