Skip to content

Commit

Permalink
Testing changes to download and expand Harman AIR SDK, after successf…
Browse files Browse the repository at this point in the history
…ul download/extraction of Apache Flex SDK (#32)
  • Loading branch information
rat-moonshine committed Apr 29, 2021
1 parent e26011f commit be376b0
Show file tree
Hide file tree
Showing 7 changed files with 829 additions and 751 deletions.
26 changes: 26 additions & 0 deletions ApacheFlexSDKInstallerLib/src/InstallApacheFlex.mxml
Original file line number Diff line number Diff line change
Expand Up @@ -2527,6 +2527,32 @@ variables are not required because the locations of these pieces are known.
completeHandler(null);
}
}
public function runInstallerScriptHarmanAIR(antPath:File, server:String, fileName:String, suffix:String):void
{
ant = new Ant();
ant.output = output;
var file:File = antPath;
addEventListener(Event.ENTER_FRAME, enterFrameHandler);
var context:Object = {installer: true};
// @devsena
// MASH
context["air.download.server"] = server;
context["air.download.file"] = fileName;
context["air.download.suffix"] = suffix;
context["verbose"] = true;
if (file.exists && !ant.processXMLFile(file, context, true))
{
ant.addEventListener(Event.COMPLETE, completeHandler);
ant.addEventListener(ProgressEvent.PROGRESS, progressEventHandler);
}
else
{
completeHandler(null);
}
}
private function progressEventHandler(event:ProgressEvent):void
{
Expand Down
2 changes: 2 additions & 0 deletions InstallerSharedCore/src/actionScripts/utils/Parser.as
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ package actionScripts.utils
// store AIR version
HelperConstants.CONFIG_ADOBE_AIR_VERSION = xmlData.airAdobe.@version.toString();
HelperConstants.CONFIG_HARMAN_AIR_VERSION = xmlData.airHarman.@version.toString();
HelperConstants.CONFIG_HARMAN_AIR_SERVER = String(xmlData.airHarman.download[HelperConstants.IS_MACOS ? "mac" : "windows"].version.path);
HelperConstants.CONFIG_HARMAN_AIR_FILE = String(xmlData.airHarman.download[HelperConstants.IS_MACOS ? "mac" : "windows"].version.file);

// store 64-bit windows url
if (!HelperConstants.IS_MACOS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,16 @@ package actionScripts.valueObjects
public static const START:String = "start";
public static const MOONSHINE_NOTIFIER_FILE_NAME:String = ".MoonshineHelperNewUpdate.xml";
public static const INSTALLER_COOKIE:String = "moonshine-installer-local";
public static const DEFAULT_SDK_FOLDER_NAME:String = "MoonshineSDKs";
public static const DEFAULT_SDK_FOLDER_NAME:String = "MoonshineSDKss";

public static var IS_MACOS:Boolean = !NativeApplication.supportsSystemTrayIcon;
public static var IS_RUNNING_IN_MOON:Boolean;
public static var IS_INSTALLER_READY:Boolean;
public static var DEFAULT_INSTALLATION_PATH:File;
public static var CONFIG_ADOBE_AIR_VERSION:String;
public static var CONFIG_HARMAN_AIR_VERSION:String;
public static var CONFIG_HARMAN_AIR_SERVER:String;
public static var CONFIG_HARMAN_AIR_FILE:String;
public static var WINDOWS_64BIT_DOWNLOAD_DIRECTORY:String;
public static var INSTALLER_UPDATE_CHECK_URL:String;
public static var IS_DETECTION_IN_PROCESS:Boolean;
Expand Down

0 comments on commit be376b0

Please sign in to comment.