no more ftp too... sftp now
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5694 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
e175546cfc
commit
695530d8ae
1 changed files with 18 additions and 13 deletions
|
@ -28,6 +28,9 @@ ZIP="C:\Program Files\7-zip\7za.exe" a -tzip %s -mx9 -mfb=255 -mpass=4 %s
|
||||||
[rsh]
|
[rsh]
|
||||||
RSH="C:\Program Files\PuTTY\plink.exe" -2 -l kichik nsis.sourceforge.net
|
RSH="C:\Program Files\PuTTY\plink.exe" -2 -l kichik nsis.sourceforge.net
|
||||||
|
|
||||||
|
[sftp]
|
||||||
|
SFTP="C:\Program Files\PuTTY\psftp.exe" -2 -l kichik -batch -b %s frs.sourceforge.net
|
||||||
|
|
||||||
[wiki]
|
[wiki]
|
||||||
UPDATE_URL=http://nsis.sourceforge.net/Special:Simpleupdate?action=raw
|
UPDATE_URL=http://nsis.sourceforge.net/Special:Simpleupdate?action=raw
|
||||||
|
|
||||||
|
@ -58,7 +61,6 @@ import sys
|
||||||
import time
|
import time
|
||||||
import Image, ImageFont, ImageDraw
|
import Image, ImageFont, ImageDraw
|
||||||
from ConfigParser import ConfigParser
|
from ConfigParser import ConfigParser
|
||||||
from ftplib import FTP
|
|
||||||
import time
|
import time
|
||||||
import pysvn
|
import pysvn
|
||||||
|
|
||||||
|
@ -84,6 +86,8 @@ ZIP = cfg.get('compression', 'ZIP')
|
||||||
|
|
||||||
RSH = cfg.get('rsh', 'RSH')
|
RSH = cfg.get('rsh', 'RSH')
|
||||||
|
|
||||||
|
SFTP = cfg.get('sftp', 'SFTP')
|
||||||
|
|
||||||
PURGE_URL = cfg.get('wiki', 'PURGE_URL')
|
PURGE_URL = cfg.get('wiki', 'PURGE_URL')
|
||||||
UPDATE_URL = cfg.get('wiki', 'UPDATE_URL')
|
UPDATE_URL = cfg.get('wiki', 'UPDATE_URL')
|
||||||
|
|
||||||
|
@ -362,20 +366,21 @@ def CreateSpecialBuilds():
|
||||||
def UploadFiles():
|
def UploadFiles():
|
||||||
print 'uploading files to SourceForge...'
|
print 'uploading files to SourceForge...'
|
||||||
|
|
||||||
def upload(ftp, file):
|
sftpcmds = file('sftp-commands', 'wb')
|
||||||
print ' uploading %s...' % file
|
sftpcmds.write('cd uploads')
|
||||||
ftp.storbinary('STOR /incoming/%s' % file.split('\\')[-1], open(file, 'rb'))
|
sftpcmds.write('put %s.tar.bz2\n' % newverdir)
|
||||||
|
sftpcmds.write('put %s\\nsis-%s-setup.exe\n' % (newverdir, VERSION))
|
||||||
|
sftpcmds.write('put %s\\nsis-%s.zip\n' % (newverdir, VERSION))
|
||||||
|
sftpcmds.write('put nsis-%s-log.zip\n' % VERSION)
|
||||||
|
sftpcmds.write('put nsis-%s-strlen_8192.zip\n' % VERSION)
|
||||||
|
|
||||||
ftp = FTP('upload.sourceforge.net')
|
run(
|
||||||
ftp.login()
|
SFTP % 'sftp-commands',
|
||||||
|
LOG_ALL,
|
||||||
|
'upload failed'
|
||||||
|
)
|
||||||
|
|
||||||
upload(ftp, newverdir + '.tar.bz2')
|
os.unlink('sftp-commands')
|
||||||
upload(ftp, newverdir + '\\nsis-%s-setup.exe' % VERSION)
|
|
||||||
upload(ftp, newverdir + '\\nsis-%s.zip' % VERSION)
|
|
||||||
upload(ftp, 'nsis-%s-log.zip' % VERSION)
|
|
||||||
upload(ftp, 'nsis-%s-strlen_8192.zip' % VERSION)
|
|
||||||
|
|
||||||
ftp.quit()
|
|
||||||
|
|
||||||
def ManualRelease():
|
def ManualRelease():
|
||||||
print 'release url:'
|
print 'release url:'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue