Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch Moonshine sources to newest Apache Flex 4.16 and Adobe Air 27 #37

Closed
piotrzarzycki21 opened this issue Oct 9, 2017 · 42 comments
Closed

Comments

@piotrzarzycki21
Copy link
Collaborator

In order to provide best performance of Moonshine IDE we should switch our development to Apache Flex 4.16 and Adobe Air 27.0.

Installation of Apache Flex 4.16 with Adobe Air 27.0 can be perform using Ant-based installer.

@piotrzarzycki21
Copy link
Collaborator Author

@rat-moonshine I will make some initial work and see whether Ant-based installer is working for me.

@piotrzarzycki21 piotrzarzycki21 self-assigned this Oct 24, 2017
@piotrzarzycki21
Copy link
Collaborator Author

I did check Ant-based installer and was able to download Apache Flex 4.16 with Adobe Air 26 and Flash Player 26.0. Unfortunately the installer config is not updated with the newest version of Adobe Air. I will probably start thread on the Dev list how to update that file.
Still if we want we can for now jump at least to the Air 26. Instruction which is working on Windows:

  1. Download Apache Flex 4.16 binaries and upack them
  2. Some Flex dependencies has been downloaded from sourceforge where there is some problem with SSL certs. In order to resolve that I have downloaded following java files and copied them to {JAVA_HOME}/jre/lib/security. I have to admit that I don't have to much knowledge about Java, but it helps me.
  3. Type in the console where you upacked Apache Flex:
    ant -f installer.xml -Dair.sdk.version=26.0 -Dflash.sdk.version=26.0

Confirm license agreement and it download additional dependencies.

@rat-moonshine
Copy link
Collaborator

Since the said AIR 26.0 downloads with Apache Flex 4.16 involves a trail of process, we probably wait till Apache or Adobe fix the downloading problem through Apache Flex SDK Installer. We want to simply the setup process for the users, can not push them through a complex process to setup/download requisite things - that was an often discussed target to Moonshine.

If Apache Flex SDK Installer can able to download the said SDKs without any problem, then I think we shouldn't have any problem distributing source packaged with the same SDK versions, as well.

@piotrzarzycki21
Copy link
Collaborator Author

The problem is that Adobe is still haven't release Adobe Air 64bit version for Windows and it's been a year or so since they have it as an Beta version. We don't know how long we will be waiting.
I have just tried built installer with Adobe Air 64bit beta for windows, but have the same error as always during upacking Adobe Air.

@joshtynjala did you try 64bit beta version ? Maybe I'm missing something. I was curious whether building Flex Installer with that SDK resolve our issue.

@piotrzarzycki21 piotrzarzycki21 moved this from In Progress to To Do in Moonshine-IDE - Bug Fixing Oct 24, 2017
@joshtynjala
Copy link
Collaborator

I built one of my AIR apps with the 64-bit beta, and it seemed to work fine. I saw that some folks were able to build the Flex SDK Installer with the 64-bit beta and it fixed the issue with using too much memory. Unfortunately, I haven't heard any plans from Adobe to release a stable version yet.

For the Feathers SDK Manager, I was able to modify the AntOnAIR library to use PowerShell on Windows to unzip files outside of AIR. My changes are here on Github:

https://github.com/BowlerHatLLC/feathers-sdk-manager/blob/3a5fcd7015f102e66a2ab10f1bc21a0e67485e71/ant_on_air/src/org/apache/flex/ant/tags/Unzip.as#L143

The Flex SDK Installer should also be able to use this change. However, one difference between the Flex SDK Installer and the Feathers SDK Manager is that the Flex SDK Installer also verifies the md5 hash of the files it downloads. As I understand it, that can also use too much memory on Windows. I remember a quick Google search seemed to indicate that PowerShell can also verify md5 hashes, so it should be possible to make the Flex SDK Installer work on 32-bit AIR without running out of memory. I've just never had the time to give it a shot.

@piotrzarzycki21
Copy link
Collaborator Author

@joshtynjala ,

I was able to built successfully installer and it is strange to me that it didn't help. PowerShell is really powerful cause you can run almost all things which are in the .NET framework through that layer. :)
Thanks for your link I will put my hands on fixing installer in that way we will see what happen.

Piotr

@joshtynjala
Copy link
Collaborator

@piotrzarzycki21 If you try to handle the md5 verification with PowerShell, be sure to check that you're using APIs that existed in the default version of PowerShell that is installed in Windows 7. AIR still runs on Windows 7, so it's important that the installer works there. When I first implemented unzip with PowerShell, I accidentally used newer APIs that didn't exist on Windows 7, and I wasted a day!

@piotrzarzycki21
Copy link
Collaborator Author

After copying your code and my first tests it looks promising, Adobe Air is unzipping nicely! I have some other failure but I hope I will pass through them.

MD5 checks do not fail, but will see once I test more.

Thanks a lot @joshtynjala - You have just fixed Apache Flex Installer! :)

@joshtynjala
Copy link
Collaborator

joshtynjala commented Oct 24, 2017

@piotrzarzycki21 It's possible that the md5 tests don't have any issues. I remember that Alex mentioned that they might fail because they also require loading large files into memory, but the unzip issue always happened first, so I don't think anyone has had a chance to test md5 until now.

@piotrzarzycki21 piotrzarzycki21 moved this from To Do to In Progress in Moonshine-IDE - Bug Fixing Oct 25, 2017
@piotrzarzycki21
Copy link
Collaborator Author

Here is where I end up today:

  • Your code @joshtynjala nicely working and I have pushed it to the installer as part of FLEX-35295
  • During work on that issue I have found another one in Flex SDK itself and fixed it FLEX-35364. Script installer.xml which has been used by installer separately now working ok, but I have to fix nightly build of sdk and nightly build of installer in order to test everything. I have started to ask more for some guide in that on Flex Dev list.

Thank you!

@joshtynjala
Copy link
Collaborator

joshtynjala commented Oct 25, 2017

but installer failed later on OSMF

Error HRESULT E_FAIL has been returned from a call to a COM component.
At line:1 char:93

  • ... ComObject shell.application;$zip = $shell.NameSpace($zipPath);New-Ite ...

@piotrzarzycki21 That looks like my code from the PowerShell script. It seems to be failing to unzip something. Maybe it's incorrectly trying to unzip osmf.swc?

@piotrzarzycki21
Copy link
Collaborator Author

@joshtynjala Ahh yes! Ok let me dig into that.

@piotrzarzycki21
Copy link
Collaborator Author

Installer has been fixed! - More information on Dev list.
Currently it will be working only with Apache Flex Nightly build. I need to start discussion about releasing both Installer and Apache Flex, but that part I will leave as out of scope of that tasks. Once SDK will get release we will be able to switch Moonshine to the newest version.

@piotrzarzycki21 piotrzarzycki21 moved this from In Progress to To Do in Moonshine-IDE - Bug Fixing Oct 27, 2017
@rat-moonshine
Copy link
Collaborator

I see the installer is not available anymore by the link (given at Dev list). Furthermore, is it possible to get a Mac build somehow?

@piotrzarzycki21
Copy link
Collaborator Author

@rat-moonshine I have sent you by email link to Windows and Mac version. I built Mac version on my own. Unfortunately sometimes those link on dev doesn't work and I'm not sure why. Try nightly build of SDK in your tests.

@piotrzarzycki21 piotrzarzycki21 moved this from To Do to In Progress in Moonshine-IDE - Bug Fixing Nov 6, 2017
@piotrzarzycki21
Copy link
Collaborator Author

@rat-moonshine I have started official process of release Apache Flex Installer - you can try binary distributions.

@piotrzarzycki21
Copy link
Collaborator Author

@rat-moonshine I have pushed Apache Flex Installer RC2 - It would be great if you could try it on Windows. Install Apache Flex SDK 4.16.1 RC1 with Adobe Air 27. - This version of SDK is under nightly build.
Release process for new SDK is also started so I'm waiting for the voters. :)

@piotrzarzycki21 piotrzarzycki21 moved this from In Progress to To Do in Moonshine-IDE - Bug Fixing Nov 10, 2017
@piotrzarzycki21
Copy link
Collaborator Author

@rat-moonshine Flex SDK 4.16.1 has been released. I have to make an announcement, but we can move forward with this one. You have available Installer 3.3 - uninstall previous version on Windows.
We will need to upgraed "ApacheFlexSDKInstallerLib.swc" in our repositories - Can you make that upgrade ?

@rat-moonshine
Copy link
Collaborator

If you can provide me the exact changes that you did in the SDK installer code (to fix AIR download issue), then I can incorporate and release the updated swc file. Please, let me know.

@rat-moonshine
Copy link
Collaborator

I've installed SDK installer version 3.3 from Apache website, and tried on my El Capitan. I confirm, AIR download completes this time, but the installation failed anyway:
screenshot1

Here's the full log details:

Installer version 3.3.0 (mac)
Using Locale: en_IN
Fetched the SDK download mirror URL from the CGI.
SDK version Apache Flex SDK 4.16.1
AIR version 27.0
Flash Player version 27.0
Creating Apache Flex home
Creating temporary directory
Downloading Apache Flex SDK from: http://www-eu.apache.org/dist/flex/4.16.1/binaries/apache-flex-sdk-4.16.1-bin.tar.gz
Verifying Apache Flex SDK MD5 Signature
The Apache Flex SDK MD5 Signature of the downloaded files matches the reference. The file is valid.
Uncompressing: /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/temp/apache-flex-sdk-4.16.1-bin.tar.gz
Finished uncompressing: /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/temp/apache-flex-sdk-4.16.1-bin.tar.gz
Downloading Adobe AIR Runtime Kit for Mac from: http://airdownload.adobe.com/air/mac/download/27.0//AdobeAIRSDK.dmg
Validating download: /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/AdobeAIRSDK.dmg
Should unzip: ${shouldUnzip}
Mounting dmg
IS WINDOWS: ${isWindows}, IS MAC: mac
Copying AIR SDK from mounted volume
Unmounting AIR SDK
Copying files from /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/airsdk/frameworks/libs/air to /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/frameworks/libs
Copying files from /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/airsdk/frameworks/projects/air to /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/frameworks/projects
Copying files from /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/airsdk/include to /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0
Copying files from /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/airsdk/lib/android to /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/lib
Copying files from /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/airsdk/lib/aot to /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/lib
Copying files from /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/airsdk/lib/nai to /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/lib
Copying files from /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/airsdk/runtimes to /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0
Copying files from /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/airsdk/samples/badge to /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/samples
Copying files from /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/airsdk/samples/icons to /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/samples
Copying files from /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/airsdk/templates/air to /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/templates
Copying files from /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/airsdk/templates/extensions to /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/templates
Copying files from /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/airsdk/templates/sdk to /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/templates
Installing Adobe Flash Player playerglobal.swc from: http://fpdownload.macromedia.com/get/flashplayer/updaters/27//playerglobal27_0.swc
Validating download: /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/frameworks/libs/player/27.0/playerglobal.swc
Downloading 2.2.zip from: https://github.com/swfobject/swfobject/archive
Validating download: /Users/santanu/Downloads/MoonshineSDKs/Flex_SDK/Flex_4.16.1_AIR_27.0/in/swfobject_2_2.zip
Download complete
Downloading OSMF2_0.swc?format=raw from: http://sourceforge.net/adobe/flexsdk/code/HEAD/tree/trunk/frameworks/libs
[get] [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032" errorID=2032]
Installation aborted: http://flex.apache.org/track-installer.html?failure=true&label=Apache Flex SDK 4.16.1&version=4.16.1&os=mac&installerversion=3.3.0&info=&info=%20%20%20%20%20%20%5Bget%5D%20%5BIOErrorEvent%20type%3D%22ioError%22%20bubbles%3Dfalse%20cancelable%3Dfalse%20eventPhase%3D2%20text%3D%22Error%20%232032%22%20errorID%3D2032%5D

@piotrzarzycki21
Copy link
Collaborator Author

@rat-moonshine please take a look into the suggestion from Alex here.

@rat-moonshine
Copy link
Collaborator

rat-moonshine commented Dec 13, 2017

I'm still having download problem with AIR 27.0 in newer SDK installer:
image

I've installed JCE 8.0 following instruction in the given Apache forum. I have Java 1.8.0_102 installed.

@piotrzarzycki21
Copy link
Collaborator Author

@rat-moonshine Can you send full logs ? I don't see installer version.

@piotrzarzycki21
Copy link
Collaborator Author

After install JCE do you have still problem with downloading SDK on Mac ?

@piotrzarzycki21
Copy link
Collaborator Author

As for the updating installer with new Adobe Air - in most cases Alex was doing that, but I will try to do this time.

@rat-moonshine
Copy link
Collaborator

rat-moonshine commented Dec 13, 2017

@piotrzarzycki21 I shall try to re-do the download process at sometime and send you the full log. The installer version is latest 3.2.0.

Installer version 3.2.0 (windows)
Using Locale: en_US
Fetched the SDK download mirror URL from the CGI.

Testing and installing JCE 8.0 is done in Windows.

I see my Windows' version is older.. I'm downloading the latest from the Apache website.

@piotrzarzycki21
Copy link
Collaborator Author

piotrzarzycki21 commented Dec 13, 2017

@rat-moonshine the latest installer version is 3.3.0, that's why you have this error 1000. Uninstall previous version of installer and try to install newest one from the website. I'm working on adding Adobe Air 28. I will let you one I finish.

@rat-moonshine
Copy link
Collaborator

I see the downloading problem with newer version (3.3.0), too -

Installer version 3.3.0 (windows)
Using Locale: en_US
Fetched the SDK download mirror URL from the CGI.
SDK version Apache Flex SDK 4.16.1
AIR version 28.0
Flash Player version 28.0
Creating Apache Flex home
Creating temporary directory
Downloading Apache Flex SDK from: http://www-us.apache.org/dist/flex/4.16.1/binaries/apache-flex-sdk-4.16.1-bin.zip
Verifying Apache Flex SDK MD5 Signature
The Apache Flex SDK MD5 Signature of the downloaded files matches the reference. The file is valid.
Uncompressing: E:\DevareaLocal\ApacheFlexSDK\4.16.1_AIR.28.0\temp\apache-flex-sdk-4.16.1-bin.zip
Finished uncompressing: E:\DevareaLocal\ApacheFlexSDK\4.16.1_AIR.28.0\temp\apache-flex-sdk-4.16.1-bin.zip
Downloading Adobe AIR Runtime Kit for Windows from: http://airdownload.adobe.com/air/win/download/28.0//AdobeAIRSDK.zip
Validating download: E:\DevareaLocal\ApacheFlexSDK\4.16.1_AIR.28.0/in/AdobeAIRSDK.zip
Finished uncompressing: E:\DevareaLocal\ApacheFlexSDK\4.16.1_AIR.28.0/in/AdobeAIRSDK.zip
Installing Adobe Flash Player playerglobal.swc from: http://fpdownload.macromedia.com/get/flashplayer/updaters/27//playerglobal28_0.swc
[get] [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032" errorID=2032]
Installation aborted: http://flex.apache.org/track-installer.html?failure=true&label=Apache Flex SDK 4.16.1&version=4.16.1&os=windows&installerversion=3.3.0&info=&info=%20%20%20%20%20%20%5Bget%5D%20%5BIOErrorEvent%20type%3D%22ioError%22%20bubbles%3Dfalse%20cancelable%3Dfalse%20eventPhase%3D2%20text%3D%22Error%20%232032%22%20errorID%3D2032%5D

@piotrzarzycki21
Copy link
Collaborator Author

Yep that is expected, cause I didn't give you an info that I have finished work on that :) Now I'm giving you. :) Try again.

@rat-moonshine
Copy link
Collaborator

Installation worked this time, thanks!

Just curious, what you required to did (to fix this)? As I have seen the entry for downloading AIR 28.0 was already available to the interface!

@piotrzarzycki21
Copy link
Collaborator Author

piotrzarzycki21 commented Dec 13, 2017

We have on the website following file - It's need to be updated once new SDK come out. Installer using it to display all options etc.

@rat-moonshine
Copy link
Collaborator

Since Apache Flex 4.16.1 released, and SDK installer also working (after some hack), do you think it's good to port Moonshine to the latest SDKs (4.16.1, AIR 28.0) now @piotrzarzycki21 ?

@piotrzarzycki21
Copy link
Collaborator Author

Yes please proceed. W should upgrade if not to Air 28, at least to Air 27. Please report any issue here.

@rat-moonshine
Copy link
Collaborator

So far, all looks great. I will give couple more tests after updating Bamboo build SDKs.

@piotrzarzycki21
Copy link
Collaborator Author

When I'm compiling in IDE I have following error with AIR 28:

Error:(65, 0) [MoonshineSharedCore]: unable to open 'D:/flex_sdk/flex_4.16.1/frameworks/libs/air/crosspromotion.swc'

I copied that file from previous version and it's working. I'm wondering whether this is not some issue with Air package.

@piotrzarzycki21
Copy link
Collaborator Author

@rat-moonshine repository where you can find installer sources are here. You can switch to tag "apache-flex-sdk-installer-3.3.0", folder flex-installer. I'm not sure how you are preparing installer swc, but build first ant_on_air which have most of the changes.

@rat-moonshine
Copy link
Collaborator

Thank you @piotrzarzycki21 . I shall look into this once I get some time. I'll get back to you if need something to clarify.

@rat-moonshine
Copy link
Collaborator

As 1.8.0 ported with the latest SDKs (Apache Flex 4.16.1 with AIR 28.0), can we close this issue (?) Or, this has something in detail for which we want to keep this open for sometime.

@piotrzarzycki21
Copy link
Collaborator Author

Let's close it. We are handling update of the internal installer as a separate issue.

@piotrzarzycki21
Copy link
Collaborator Author

We should also update information on the website and in Readme what we are using for the source building.

@rat-moonshine
Copy link
Collaborator

We should also update information on the website and in Readme what we are using for the source building.

That is a good point. I can check this. Thanks!

@rat-moonshine rat-moonshine moved this from To Do to Done #1.8.0 in Moonshine-IDE - Bug Fixing Jan 11, 2018
rat-moonshine added a commit that referenced this issue Nov 10, 2021
rat-moonshine added a commit that referenced this issue Nov 10, 2021
- Fixed a few item deletion while iteration problem
- Completed the initial view for Home
- Added MyDetails section linked to MyAccount
- Linked GBAuth interface from Home
(#37)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

No branches or pull requests

3 participants