gitso

gitso Commit Details


Date:2008-07-27 18:57:29 (16 years 4 months ago)
Author:xburnerx
Branch:master
Commit:804ef46b8ce9404e9427d2a4ce99760fbd522120
Parents: b72e8b7e02605c976108f5ec7b0e44bff6190432
Message::added windows supporting files and the start to an .nsi installer

Changes:

File differences

gitso/trunk/Gitso.py
176176
177177
178178
179
179
180180
181
181
182182
183183
184184
185
185
186186
187187
188188
......
206206
207207
208208
209
209
210210
211
211
212
212213
213214
214215
if sys.platform == 'darwin':
self.returnPID = os.spawnl(os.P_NOWAIT, '%sOSXvnc/OSXvnc-server' % devPath, 'OSXvnc-server', '-nopw -connectHost', '%s' % host)
elif sys.platform.find('linux') != -1:
self.returnPID = os.spawnlp(os.P_NOWAIT, 'x11vnc', 'x11vnc', '-ncache 20 -solid black -connect' , '%s' % host)
self.returnPID = os.spawnlp(os.P_NOWAIT, 'x11vnc', 'x11vnc', '-nopw -ncache 20 -solid black -connect' , '%s' % host)
elif sys.platform == 'win32':
self.returnPID = os.spawnl(os.P_NOWAIT, 'c:\\windows\\WinVNC.exe', 'c:\\windows\\WinVNC.exe')
self.returnPID = os.spawnl(os.P_NOWAIT, '%s\\WinVNC.exe' % os.environ['WINDIR'], '%s\\WinVNC.exe' % os.environ['WINDIR'])
print "Launched WinVNC.exe, waiting to run -connect command..."
import time
time.sleep(3)
self.returnPID = os.spawnl(os.P_NOWAIT, 'c:\\windows\\WinVNC.exe', 'c:\\windows\\WinVNC.exe', '-connect', '%s' % host)
self.returnPID = os.spawnl(os.P_NOWAIT, '%s\\WinVNC.exe' % os.environ['WINDIR'], '%s\\WinVNC.exe' % os.environ['WINDIR'], '-connect', '%s' % host)
else:
print 'platform not detected'
self.connectButton.Enable(True)
self.stopButton.Enable(False)
elif sys.platform.find('linux') != -1:
self.returnPID = os.spawnlp(os.P_NOWAIT, 'vncviewer', 'vncviewer', '-listen')
self.returnPID = os.spawnlp(os.P_NOWAIT, 'vncviewer', 'vncviewer', '-listen')
elif sys.platform == 'win32':
self.returnPID = os.spawnl(os.P_NOWAIT, 'c:\\windows\\vncviewer.exe', 'c:\\windows\\vncviewer.exe', '-listen' )
print 'Launching %s\\vncviewer.exe' % os.environ['WINDIR']
self.returnPID = os.spawnl(os.P_NOWAIT, "%s\\vncviewer.exe" % os.environ['WINDIR'], '%s\\vncviewer.exe' % os.environ['WINDIR'], '-listen' )
else:
print 'platform not detected'
gitso/trunk/makegitso.nsi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
; gitso.nsi
; ----------------
; written by Derek Buranen (xburnerx@gmail.com) & Aaron Gerber
;
; Install Gitso in Windows using NSIS
;--------------------------------
!define VERSION "0.5"
Name "Gitso ${VERSION}"
Icon "icon.ico"
UninstallIcon "icon.ico"
OutFile "gitso-install.exe"
; The default installation directory
InstallDir $PROGRAMFILES\Gitso
; Registry key to check for directory (so if you install again, it will overwrite the old one automatically)
InstallDirRegKey HKLM "Software\Gitso" "Install_Dir"
;--------------------------------
; Version Information
VIProductVersion "0.0.0.0"
VIAddVersionKey "ProductName" "Gitso"
VIAddVersionKey "Comments" "Gitso is to support others"
VIAddVersionKey "CompanyName" "http://code.google.com/p/gitso"
VIAddVersionKey "LegalCopyright" "GPL"
VIAddVersionKey "FileDescription" "Gitso"
VIAddVersionKey "FileVersion" "${VERSION}"
;--------------------------------
;--------------------------------
; Pages
Page components
Page directory
Page instfiles
UninstPage uninstConfirm
UninstPage instfiles
;--------------------------------
Section "Gitso"
SectionIn RO
SetOutPath $INSTALLDIR
;need to add gitso's exe file here after created with py2exe or something like it
SetOutPath $WINDIR
File ".\arch\win32\vncviewer.exe"
File ".\arch\win32\WinVNC.exe"
File ".\arch\win32\VNCHooks.dll"
SectionEnd
; Uninstall
;------------------------------------------------------
Section "Uninstall"
; Remove registry keys
DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\RMTT"
DeleteRegKey HKLM SOFTWARE\RMTT
; Remove files and uninstaller
Delete $WINDIR\revealer.dll
Delete $WINDIR\revealer.exe
Delete $WINDIR\Startup.exe
Delete $WINDIR\VNCHooks.dll
Delete $WINDIR\WinVNC.exe
RMDir /r $INSTDIR
Delete $INSTDIR\uninstall.exe
Delete "$DESKTOP\RMTT.lnk"
Delete "$WINDIR\Tasks\Spyware Scan.job"
; Remove shortcuts and folder
RMDir /r "$SMPROGRAMS\RMTT"
RMDir "$INSTDIR"
SectionEnd

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.07483s using 13 queries.