Changeset 19aa896 in sasview for sansview/scripts/installer_generator.py
- Timestamp:
- Aug 12, 2011 11:37:18 AM (13 years ago)
- Branches:
- master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
- Children:
- c4af24f
- Parents:
- 1c7acc7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sansview/scripts/installer_generator.py
rdb7a82e r19aa896 10 10 REG_PROGRAM = """{app}\MYPROG.EXE"" ""%1""" 11 11 APPLICATION = str(local_config.__appname__ )+ '.exe' 12 AppName = str(local_config.__appname__ )# + '-'+ str(local_config.__version__)13 AppVerName = str(local_config.__appname__ ) +'-'+ str(local_config.__version__)12 AppName = str(local_config.__appname__ )# + '-'+ str(local_config.__version__) 13 AppVerName = str(local_config.__appname__ )+'-'+ str(local_config.__version__) 14 14 Dev = '' 15 15 if AppVerName.lower().count('dev') > 0: … … 33 33 #find extension for windows file assocation 34 34 #extension list need to be modified for each application 35 36 icon_path = local_config.icon_path 37 media_path = local_config.media_path 38 test_path = local_config.test_path 35 39 36 40 def find_extension(): … … 139 143 return msg 140 144 145 path, _ = os.path.split(os.getcwd()) 146 dist_path = os.path.join(path, "scripts", "dist") 141 147 def write_file(): 142 148 """ … … 144 150 """ 145 151 msg = "\n\n[Files]\n" 146 msg += """Source: " dist\%s";\t""" % str(APPLICATION)152 msg += """Source: "%s\%s";\t""" % (dist_path, str(APPLICATION)) 147 153 msg += """DestDir: "{app}";\tFlags: ignoreversion\n""" 148 154 msg += """Source: "dist\*";\tDestDir: "{app}";\t""" 149 155 msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 150 msg += """Source: " images\*";\tDestDir: "{app}\%s";\t""" % str("images")156 msg += """Source: "%s\*";\tDestDir: "{app}\%s";\t""" % (icon_path, str("images")) 151 157 msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 152 msg += """Source: " test\*";\tDestDir: "{app}\%s";\t""" % str("test")158 msg += """Source: "%s\*";\tDestDir: "{app}\%s";\t""" % (test_path, str("test")) 153 159 msg += """Flags: ignoreversion recursesubdirs createallsubdirs\n""" 154 160 msg += """;\tNOTE: Don't use "Flags: ignoreversion" on any shared system files"""
Note: See TracChangeset
for help on using the changeset viewer.