Browse Source

updated iguana binaries for win/linux/osx, added app icon for win/linux app

ca333-dev
Satinder Grewal 8 years ago
parent
commit
a850fcc9a2
  1. 6
      README.md
  2. BIN
      assets/bin/linux64/iguana
  3. BIN
      assets/bin/osx/iguana
  4. BIN
      assets/bin/win64/iguana.exe
  5. BIN
      assets/bin/win64/nanomsg.dll
  6. BIN
      assets/iguana/iguana
  7. BIN
      assets/iguana/iguana32.exe
  8. BIN
      assets/iguana/iguanaLinux
  9. BIN
      assets/iguana/pthreadvc2.dll
  10. 31
      main.js

6
README.md

@ -43,9 +43,9 @@ Refer to the original [electron-packager](https://github.com/electron-userland/e
Change directory to iguana and execute the following command to build the Linux app Change directory to iguana and execute the following command to build the Linux app
```shell ```shell
cd iguana cd iguana
electron-packager . --platform=linux --arch=ia32 --out=build/ electron-packager . --platform=linux --arch=x64 --out=build/
``` ```
change architecture build parameter to ```--arch=x64``` for 64 bit build change architecture build parameter to ```--arch=x32``` for 32 bit build
##### OSX ##### OSX
Change directory to iguana and execute the following command to build the OSX app Change directory to iguana and execute the following command to build the OSX app
@ -58,6 +58,6 @@ electron-packager . --platform=darwin --arch=x64 --icon=assets/icons/iguana_app_
Change directory to iguana and execute the following command to build the Windows app Change directory to iguana and execute the following command to build the Windows app
```shell ```shell
dir iguana dir iguana
electron-packager . --platform=win32 --arch=ia32 --icon=assets/icons/iguana_app_icon.ico --out=build/ electron-packager . --platform=win32 --arch=win32 --icon=assets/icons/iguana_app_icon.ico --out=build/
``` ```
change architecture build parameter to ```--arch=x64``` for 64 bit build change architecture build parameter to ```--arch=x64``` for 64 bit build

BIN
assets/bin/linux64/iguana

Binary file not shown.

BIN
assets/bin/osx/iguana

Binary file not shown.

BIN
assets/bin/win64/iguana.exe

Binary file not shown.

BIN
assets/bin/win64/nanomsg.dll

Binary file not shown.

BIN
assets/iguana/iguana

Binary file not shown.

BIN
assets/iguana/iguana32.exe

Binary file not shown.

BIN
assets/iguana/iguanaLinux

Binary file not shown.

BIN
assets/iguana/pthreadvc2.dll

Binary file not shown.

31
main.js

@ -30,19 +30,20 @@ var rungui = guiapp.listen(17777, function () {
//require('./assets/js/iguana.js'); //below code shall be separated into asset js for public version //require('./assets/js/iguana.js'); //below code shall be separated into asset js for public version
var iguanaOSX = path.join(__dirname, '/assets/iguana/iguana');
var iguanaLinux = path.join(__dirname, '/assets/iguana/iguanaLinux');
var iguanaWin = path.join(__dirname, '/assets/iguana/iguana32.exe');
if (os.platform() === 'darwin') { // SELECTING IGUANA BUILD TO RUN AS PER OS DETECTED BY DESKTOP APP
var iguanaDir = process.env.HOME + '/Library/Application Support/iguana' var iguanaOSX = path.join(__dirname, '/assets/bin/osx/iguana');
} var iguanaLinux = path.join(__dirname, '/assets/bin/linux64/iguana');
if (os.platform() === 'linux') { var iguanaWin = path.join(__dirname, '/assets/bin/win64/iguana.exe');
var iguanaDir = process.env.HOME + '/.iguana'
} // SETTING OS DIR TO RUN IGUANA FROM
if (os.platform() === 'win32') { if (os.platform() === 'darwin') { var iguanaDir = process.env.HOME + '/Library/Application Support/iguana' }
var iguanaDir = process.env.APPDATA + '/iguana' if (os.platform() === 'linux') { var iguanaDir = process.env.HOME + '/.iguana' }
} if (os.platform() === 'win32') { var iguanaDir = process.env.APPDATA + '/iguana' }
// SETTING APP ICON FOR LINUX AND WINDOWS
if (os.platform() === 'linux') { var iguanaIcon = path.join(__dirname, '/assets/icons/iguana_app_icon_png/128x128.png') }
if (os.platform() === 'win32') { var iguanaIcon = path.join(__dirname, '/assets/icons/iguana_app_icon.ico') }
//console.log(iguanaDir); //console.log(iguanaDir);
@ -67,7 +68,7 @@ function createLoadingWindow() {
mainWindow = null; mainWindow = null;
// initialise window // initialise window
loadingWindow = new BrowserWindow({width: 500, height: 300, frame: false}) loadingWindow = new BrowserWindow({width: 500, height: 300, frame: false, icon: iguanaIcon})
// load our index.html (i.e. easyDEX GUI) // load our index.html (i.e. easyDEX GUI)
loadingWindow.loadURL('http://localhost:17777/gui/'); loadingWindow.loadURL('http://localhost:17777/gui/');
@ -122,7 +123,7 @@ app.on('window-all-closed', function () {
function createWindow (status) { function createWindow (status) {
if ( status === 'open') { if ( status === 'open') {
// initialise window // initialise window
mainWindow = new BrowserWindow({width: 1280, height: 800}) mainWindow = new BrowserWindow({width: 1280, height: 800, icon: iguanaIcon})
// load our index.html (i.e. easyDEX GUI) // load our index.html (i.e. easyDEX GUI)
mainWindow.loadURL('http://localhost:17777/gui/EasyDEX-GUI/'); mainWindow.loadURL('http://localhost:17777/gui/EasyDEX-GUI/');
@ -176,7 +177,7 @@ app.on('window-all-closed', function () {
// so we do not kill the app --> for the case user clicks again on the iguana icon // so we do not kill the app --> for the case user clicks again on the iguana icon
// we open just a new window and respawn iguana proc // we open just a new window and respawn iguana proc
if (process.platform !== 'darwin') { if (process.platform !== 'darwin') {
app.quit() //app.quit()
} }
}) })

Loading…
Cancel
Save