mirror of
https://github.com/JHUAPL/DistMaker.git
synced 2026-01-09 14:37:54 -05:00
Changes to support various issues:
- Updated appLauncher.jar - Ensure proper permissions for deployed files and folders - Removed spurious app.cfg argument in Windows version
This commit is contained in:
@@ -117,6 +117,13 @@ def addRelease(appName, version, buildDate):
|
||||
# Copy over the contents of the release folder to the deploy location
|
||||
shutil.copytree(distPath, versionPath, symlinks=True)
|
||||
|
||||
# Ensure all folders and files have the proper permissions
|
||||
for root, dirs, files in os.walk(versionPath):
|
||||
for d in dirs:
|
||||
os.chmod(os.path.join(root, d), 0o755)
|
||||
for f in files:
|
||||
os.chmod(os.path.join(root, f), 0o644)
|
||||
|
||||
# Update the version info
|
||||
addReleaseInfo(installPath, appName, version, buildDate)
|
||||
print('Application {} ({}) has been deployed to location: {}'.format(appName, version, args.deployRoot))
|
||||
|
||||
@@ -80,7 +80,7 @@ def addReleaseInfo(installPath, verStr):
|
||||
for aFile in jreFiles:
|
||||
shutil.copy(aFile, destPath)
|
||||
destFile = os.path.join(destPath, aFile)
|
||||
os.chmod(destFile, 0644)
|
||||
os.chmod(destFile, 0o644)
|
||||
|
||||
|
||||
def delRelease(verStr):
|
||||
|
||||
@@ -167,7 +167,7 @@ def buildLaunch4JConfig(destFile, args, jreTarGzFile, iconFile):
|
||||
writeln(f, 1, "<downloadUrl>http://java.com/download</downloadUrl>");
|
||||
# writeln(f, 1, "<supportUrl>url</supportUrl>");
|
||||
|
||||
writeln(f, 1, "<cmdLine>app.cfg</cmdLine>");
|
||||
# writeln(f, 1, "<cmdLine>app.cfg</cmdLine>");
|
||||
writeln(f, 1, "<chdir>app/</chdir>");
|
||||
writeln(f, 1, "<priority>normal</priority>");
|
||||
writeln(f, 1, "<customProcName>true</customProcName>");
|
||||
|
||||
@@ -114,7 +114,7 @@ public class PickReleasePanel extends GlassPanel implements ActionListener, ZioR
|
||||
titleL.setText(appName + " needs to be updated.");
|
||||
infoMsg = "You are running version " + currVerStr + ". ";
|
||||
infoMsg += "You may update to the latest release. You may also switch to an "
|
||||
+ "older relase by choosing another version below. ";
|
||||
+ "older release by choosing another version below. ";
|
||||
}
|
||||
infoMsg += "\n";
|
||||
|
||||
|
||||
Binary file not shown.
@@ -11,7 +11,7 @@ import time
|
||||
|
||||
# Globals
|
||||
# The default version of DistMaker
|
||||
version = '0.43'
|
||||
version = '0.44'
|
||||
|
||||
|
||||
def logAndPrint(message="", indent=0, showTime=False):
|
||||
|
||||
Reference in New Issue
Block a user