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:
Norberto Lopez
2016-08-03 16:44:36 +00:00
parent 985c605475
commit f0b16415db
6 changed files with 11 additions and 4 deletions

View File

@@ -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))

View File

@@ -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):

View File

@@ -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>");

View File

@@ -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.

View File

@@ -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):