Skip to content

Commit af95ace

Browse files
committed
fix uploader
1 parent 44b40e0 commit af95ace

File tree

3 files changed

+13
-20
lines changed

3 files changed

+13
-20
lines changed

gui/forms/mainwindow.ui

-6
Original file line numberDiff line numberDiff line change
@@ -1291,9 +1291,6 @@
12911291
<property name="cursorPosition">
12921292
<number>36</number>
12931293
</property>
1294-
<property name="placeholderText">
1295-
<string notr="true"/>
1296-
</property>
12971294
</widget>
12981295
<widget class="QLineEdit" name="mxfKeyEdit">
12991296
<property name="enabled">
@@ -1336,9 +1333,6 @@
13361333
<property name="cursorPosition">
13371334
<number>32</number>
13381335
</property>
1339-
<property name="placeholderText">
1340-
<string notr="true"/>
1341-
</property>
13421336
</widget>
13431337
<widget class="QCheckBox" name="mxfEncryptionCheckBox">
13441338
<property name="geometry">

scripts/publish.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import hashlib
77
import os
88
import re
9+
import sys
910

1011

1112
class BinTray(object):
@@ -203,13 +204,20 @@ def upload(self):
203204
bintray = BinTray()
204205
bintray.upload(self.downloaded_files)
205206

207+
package = None
208+
if len(sys.argv) > 1:
209+
package = sys.argv[1]
210+
206211
print '---------------'
207212
print 'OpenDCP Publish'
208213
print '---------------'
209214
p = Publish()
210215

211-
print 'Downloading OpenDCP files from build.opensuse.org'
212-
p.download()
216+
if not package:
217+
print 'Downloading OpenDCP files from build.opensuse.org'
218+
p.download()
219+
else:
220+
p.downloaded_files = [package]
213221

214222
print '\nUploading OpenDCP files to bintray.com'
215223
p.upload()

upload/CMakeLists.txt

+3-12
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,13 @@ ENDIF()
4646
#-----------------------------------------------------------------------------
4747

4848
#--google parameters----------------------------------------------------------
49-
SET(UPLOADER ${PROJECT_SOURCE_DIR}/scripts/googlecode_upload.py)
50-
SET(GOOGLE_PROJECT ${PROJECT_NAME})
51-
52-
SET(SUMMARY "OpenDCP ${OPENDCP_VERSION} ${SYSTEM_STRING}")
49+
SET(UPLOADER ${PROJECT_SOURCE_DIR}/scripts/publish.py)
5350
SET(UPLOAD_FILE ${PROJECT_BINARY_DIR}/${PACKAGE_FILE_NAME})
54-
SET(CONFIG_FILE "$ENV{HOME}/.opendcp/google.txt")
55-
IF(EXISTS ${CONFIG_FILE})
56-
FILE(READ ${CONFIG_FILE} PASSWORD)
57-
STRING(REGEX REPLACE "\n" "" PASSWORD "${PASSWORD}")
58-
SET(PASSWORD "--password=${PASSWORD}")
59-
ENDIF()
6051
#-----------------------------------------------------------------------------
6152

6253
#--upload target--------------------------------------------------------------
63-
MESSAGE(STATUS "${UPLOADER} -s \"${SUMMARY}\" -p \"${GOOGLE_PROJECT}\" -u \"${USER}\" ${PASSWORD} -l \"${LABELS}\" ${UPLOAD_FILE}")
54+
MESSAGE(STATUS "${UPLOADER} ${UPLOAD_FILE}")
6455
ADD_CUSTOM_TARGET(upload
65-
COMMAND ${UPLOADER} -s "${SUMMARY}" -p "${GOOGLE_PROJECT}" -u "${USER}" ${PASSWORD} -l "${LABELS}" ${UPLOAD_FILE}
56+
COMMAND ${UPLOADER} ${UPLOAD_FILE}
6657
)
6758
#-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)