try to build DMG and NSIS for PyCharm CE

This commit is contained in:
Dmitry Jemerov
2013-09-20 13:43:06 +02:00
parent af1b464d50
commit 48fa5bf869
4 changed files with 16 additions and 11 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
; Installer images
!define IMAGES_LOCATION ${BASE_DIR}\python\build\resources
!define LICENSE_FILE ${BASE_DIR}\python\license\PyCharm_Preview_License
!define PRODUCT_PROPERTIES_FILE ${BASE_DIR}\out\pycharm\layout\bin\idea.properties
;!define LICENSE_FILE ${BASE_DIR}\python\license\PyCharm_Preview_License
!define PRODUCT_PROPERTIES_FILE ${BASE_DIR}\out\pycharmCE\layout\bin\idea.properties
!define PRODUCT_VM_OPTIONS_NAME pycharm.exe.vmoptions
!define PRODUCT_VM_OPTIONS_FILE ${BASE_DIR}\out\pycharm\win\bin\${PRODUCT_VM_OPTIONS_NAME}
!define PRODUCT_VM_OPTIONS_FILE ${BASE_DIR}\out\pycharmCE\win\bin\${PRODUCT_VM_OPTIONS_NAME}
+10 -5
View File
@@ -43,6 +43,7 @@ class Paths {
def Paths(String home) {
sandbox = "$home/out/pycharm"
sandboxCE = "$home/out/pycharmCE"
distAll = "$sandbox/layout"
distWin = "$sandbox/win"
@@ -165,13 +166,17 @@ private communityEdition(Set usedJars) {
s.setBinding(binding)
s.layoutCommunity("${paths.sandbox}/classes/production", usedJars)
signExe("${paths.sandboxCE}/win/bin/pycharm.exe")
buildNSIS(["${paths.sandboxCE}/layout", "${paths.sandboxCE}/win"],
"$pythonCommunityHome/build/strings.nsi", "$pythonCommunityHome/build/paths.nsi",
"pycharm", false, true, system_selector)
// todo: get rid of copying
//ant.copy(file: "$paths.artifacts/ideaIC-${buildNumber}.mac.zip", tofile: "$paths.artifacts/ideaIC-${buildNumber}.sit")
//def extraArgs = ["build.number": "IC-$buildNumber"]
//signMacZip("idea", extraArgs)
//notifyArtifactBuilt("$paths.artifacts/ideaIC-${buildNumber}.sit")
//buildDmg("idea", getDmgImage(true), extraArgs)
//ant.copy(file: "${paths.sandboxCE}/artifacts/ideaIC-${buildNumber}.mac.zip", tofile: "$paths.artifacts/ideaIC-${buildNumber}.sit")
def extraArgs = ["build.number": "PC-$buildNumber"]
signMacZip("pycharm", extraArgs)
notifyArtifactBuilt("$paths.artifacts/ideaIC-${buildNumber}.sit")
buildDmg("pycharm", "${home}/python/build/DMG_background.png", extraArgs)
//ant.delete(file: "$paths.artifacts/ideaIC-${buildNumber}.sit")
}
+1 -1
View File
@@ -50,7 +50,7 @@ class Paths {
distWin = "$sandbox/win"
distMac = "$sandbox/mac"
distUnix = "$sandbox/unix"
artifacts = "$home/out/pycharmCE/artifacts"
artifacts = "$sandbox/artifacts"
ideaSystem = "$sandbox/system"
ideaConfig = "$sandbox/config"
+2 -2
View File
@@ -1,6 +1,6 @@
!define MANUFACTURER "JetBrains"
!define MUI_PRODUCT "PyCharm"
!define PRODUCT_FULL_NAME "JetBrains PyCharm"
!define MUI_PRODUCT "PyCharm Community Edition"
!define PRODUCT_FULL_NAME "JetBrains PyCharm Community Edition"
!define PRODUCT_EXE_FILE "pycharm.exe"
!define PRODUCT_ICON_FILE "pycharm_inst.ico"
!define PRODUCT_UNINST_ICON_FILE "pycharm_uninst.ico"