-
Notifications
You must be signed in to change notification settings - Fork 2
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
Haxe Installation #13
Comments
I see that if I install Haxe at the default location, it fails with the App Store build of Moonshine:
So, we may need to look into installing this under ~/Downloads/MoonshineSDKs, if possible |
@JustinProminic asked about this again recently. We should also install Neko as part of this, and update both paths in Moonshine. |
Instead of using installer to install Haxe, we probably able to download/install using binaries from here https://github.com/HaxeFoundation/haxe/releases. As an example for macOS, we can download and place the We can write an Ant script therefore to automate the other installation process as well. |
I'm having trouble finding a way to pass the default parameter to
I tried to run the command using
|
- Ant installation script tests started using macOS (#13)
I see I used the You can see my Ant task here |
Problem those I'm facing currently,
|
While searching for a way to run shell-script from an app with administrator privilege - so we can copy the files/folders under This might require us to break the process in different chunks, i.e. Ant -> AppleScript -> Ant, or something likewise. |
These commands worked for me:
I confirmed I could install a library in this directory. If we can install Haxe in ~/Downloads/MoonshineSDKs/Haxe, that should resolve the permissions issue as well. We will need to add this directory to |
I confirmed that I can download the binaries here, and install them in MoonshineSDKs like this. You'll want to detect the extracted path rather than hard-coding it.
UPDATE: I see that the haxelib path is updated globally, even though I used the haxelib binary from MoonshineSDKs. If this is saved to a directory with restricted permissions, this may cause troubles anyway. I wasn't able to identify the file that saves this information, but let me know what path is reported if you get errors. |
The environment setup command for macOS running from the Ant process - turned out to be unstable between different machine tests. I moved the process to split in both Ant and AS3 (NativeProcess) to overcome this, as we're doing on Windows. With this split the environment-setup and haxe setup now remains at AS3 side. I confirm it works accordingly, and I don't see any Some other notes from our earlier discussions:
For |
I retested on macOS and Windows and it seems to be working fine in both cases. There weren't any task failed errors. |
I can also successfully install on macOS and Windows in today's tests. The updated logs look good. I did some quick tests with Haxe Neko projects in Moonshine and Build & Run worked as expected. I'm still having trouble adding a library, but that should be fixed on the Moonshine side (see Moonshine-IDE/Moonshine-IDE#967) |
@rat-moonshine and I discussed the lime problem more in today's chat. This discussion seems very relevant to what we are trying to do. It seems that the problem is that macOS SIP prevents DYLD environment variables from being inherited by child processes. So, Looking at the ideas in this thread, I thought the symlinks were an interesting idea. I did some tests, and this seemed to clear the
This needs to be done once as part of installing Haxe and Neko. UPDATE: the symlinks should only be needed for macOS. @rat-moonshine noticed some Windows problems late in the meeting today, though, so we'll need to investigate that as well. |
…o access Neko without a need of DYLD #13
|
I moved above test-matrix from @JesseProminic to Moonshine-IDE/Moonshine-IDE#967 (comment) as this testings are Moonshine related. Please, discuss in the linked forum. |
I have some reservations about how the symlinks are handled, but the install is working on macOS and Windows for now. We can revisit this if it causes problems later. |
We have been seeing these errors lately
I thought we had written this to hide the warnings if the links already exist. Tagging @Igazine |
Closed this issue while recreated the relevant part as a separate issue in Moonshine-IDE |
With the addition of Haxe project support to Moonshine, we shall be needing installation support of Haxe, Node.js and other related programs through Moonshine SDK Installer.
Here are some initial direction from Josh:
We'll probably require to automate the run
haxelib setup
command once Haxe installation finish. Targeting different compilation platforms (i.e. Windows, macOS, mobile etc.) we might require to look into all the other dependency requirement for individual purpose.The text was updated successfully, but these errors were encountered: