Running Moonshine instance through Moonshine IDE - Moonshine-IDE/Moonshine-IDE GitHub Wiki

The following instructions are valid both for macOS and Windows. Tested on macOS El Capitan, macOS High Sierra, macOS Mojave and Windows 10.

This requires running of non-Sandbox (non-App-Store) version of Moonshine-IDE instance on macOS. You can download non-Sandbox Moonshine-IDE from here: https://moonshine-ide.com/download.

You also have the Moonshine-IDE source downloaded from its GitHub web-site. Moonshine-IDE can help if you not already:

Download Moonshine-IDE source

  1. Run Moonshine-IDE
  2. It assumes you have Git binary path already configured to Moonshine -> Settings
  3. Go to Git -> Manage Repositories from top-down menu
  4. Click on the entry with repository URL https://github.com/prominic/Moonshine-IDE
  5. Click on Clone button
  6. Proceed with the prompted dialog and download the sources to location you want
  7. Once completed Moonshine should prompt with "Select Projects to Open" dialog containing list of projects (those been found in downloaded source directories); Choose one or more to Open, or just ide/MoonshineDESKTOPevolved

Download additional supporting project(s)

  1. Go to Git -> Manage Repositories
  2. Search for the named "Moonshine-IDE Dependencies (https://github.com/prominic/Moonshine-IDE)" entry
  3. Select the entry and click on Browse
  4. This shall open you a list of project references either type of required and optional
  5. Click on the dependency named "Dependency: Moonshine-SDK-Installer (https://github.com/prominic/Moonshine-SDK-Installer)", and click on Clone button
  6. Have the project downloaded from GitHub to your desired location
  7. You can either choose to open any project or cancel when "Select Projects to Open" prompt appear next

Prerequisite before running Moonshine through Moonshine-IDE

  1. It assumes you have MoonshineDESKTOPevolved project already opened in the IDE's sidebar
  2. Right-click on the project's root-node in sidebar, and chose Settings
  3. Go to Build Options in opening window
  4. First item Custom SDK - you choose to set any particular SDK here or use Moonshine's global set SDK (Moonshine -> Settings). Moonshine source currently build with Apache Flex SDK 4.16.1 and AIR 28.0. For more information on setting Moonshine SDKs please refer here
  5. In Additional Compiler Option fields make the following changes:
  • -define+=CONFIG::OSX,true to -define+=CONFIG::OSX,false
  • Remove -external-library-path+=extensions/SSB.ane

To support macOS sandbox/restrictions Moonshine-IDE uses separate API to handle file-system, and acts differently by above options set. In case of running Moonshine instance through Moonshine-IDE in sandbox environment, we need to have those special handlers removed (when run) because they can't run in sandbox environment through a sandbox application, which is Moonshine-IDE

  1. Go to Paths
  2. Make sure all the pre-defined dependency paths are correct by a green tick next to them. If any needs to fix based on your downloaded locations, please do fix and Save the settings
  3. Having the MoonshineDESKTOPevolved project selected in sidebar, press CMD+Shift+R (on macOS) or Ctrl+Shift+R (on Windows) to open file-search dialog
  4. Type or search for MoonshineDESKTOP-app.xml
  5. Once found double-click the file to open in editor
  6. Scroll down to bottom and comment-out this line <extensions><extensionID>karar.santanu.SecurityScopeBookmark</extensionID></extensions> and save the file
  7. Open MoonshineSharedCore project in the IDE's sidebar
  8. Having the MoonshineSharedCore project selected in sidebar, press CMD+Shift+R (on macOS) or Ctrl+Shift+R (on Windows) to open file-search dialog
  9. Type or search for InstallConfig.xml and double-click the file to open in editor
  10. Replace $isAppStoreVersion with false and save the file
  11. Having the MoonshineDESKTOPevolved project selected in sidebar, go to Project -> Build & Run from top-down menu
  12. You should see some activities in Moonshine console at bottom and eventually a new Moonshine instance should start
⚠️ **GitHub.com Fallback** ⚠️