-
Notifications
You must be signed in to change notification settings - Fork 37
Description
Overview of the Issue
The first thing I tested was building for Mac OS with
make mac-64
which created a working dmg application!!
Now I am going to try getting it to run on windows.
$ make windows-64
rm -rf build/win64
electron-packager . app --platform=win32 --arch=x64 --version=0.28.3 --out=build/win64
(node:84759) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
... and 1 more
Packaging app for platform win32 x64 using electron v0.28.3
[ { Error: ENOENT: no such file or directory, stat '/Users/ajk/BCI/electron-angular-boilerplate/build/mac64/app-darwin-x64/app.app/Contents/Frameworks/Electron Framework.fram
ework/Libraries/Libraries'
at Error (native)
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/Users/ajk/BCI/electron-angular-boilerplate/build/mac64/app-darwin-x64/app.app/Contents/Frameworks/Electron Framework.framework/Libraries/Libraries' },
{ Error: ENOENT: no such file or directory, stat '/Users/ajk/BCI/electron-angular-boilerplate/build/mac64/app-darwin-x64/app.app/Contents/Frameworks/Electron Framework.fram
ework/Versions/Current/Libraries/Libraries'
at Error (native)
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/Users/ajk/BCI/electron-angular-boilerplate/build/mac64/app-darwin-x64/app.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/Libraries/Librarie
s' },
{ Error: ENOENT: no such file or directory, stat '/Users/ajk/BCI/electron-angular-boilerplate/build/mac64/app-darwin-x64/app.app/Contents/Frameworks/Electron Framework.fram
ework/Versions/A/Libraries/Libraries'
at Error (native)
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/Users/ajk/BCI/electron-angular-boilerplate/build/mac64/app-darwin-x64/app.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/Libraries' } ]
undefined
make: *** [windows-64] Error 1
Very strange that it seeks out mac stuff for building for windows.
First thing i'm going to try is removing the mac dist I had created before.
Now going to call to make all the apps and see if I can get a windows build.
$ make apps
rm -rf build/win32
electron-packager . app --platform=win32 --arch=ia32 --version=0.28.3 --out=build/win32
(node:84922) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
... and 1 more
Packaging app for platform win32 ia32 using electron v0.28.3
Wrote new app to build/win32/app-win32-ia32
rm -rf build/win64
electron-packager . app --platform=win32 --arch=x64 --version=0.28.3 --out=build/win64
(node:85022) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Packaging app for platform win32 x64 using electron v0.28.3
Wrote new app to build/win64/app-win32-x64
rm -rf build/mac64
electron-packager . app --platform=darwin --arch=x64 --version=0.28.3 --out=build/mac64
(node:85161) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Packaging app for platform darwin x64 using electron v0.28.3
Wrote new app to build/mac64/app-darwin-x64
rm -rf build/linux32
electron-packager . app --platform=linux --arch=ia32 --version=0.28.3 --out=build/linux32
(node:85497) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Downloading electron-v0.28.3-linux-ia32.zip
[============================================>] 100.0% of 37.01 MB (7.4 MB/s)
Packaging app for platform linux ia32 using electron v0.28.3
[ { Error: ENOENT: no such file or directory, stat '/Users/ajk/BCI/electron-angular-boilerplate/build/mac64/app-darwin-x64/app.app/Contents/Frameworks/Electron Framework.fram
ework/Libraries/Libraries'
at Error (native)
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/Users/ajk/BCI/electron-angular-boilerplate/build/mac64/app-darwin-x64/app.app/Contents/Frameworks/Electron Framework.framework/Libraries/Libraries' },
{ Error: ENOENT: no such file or directory, stat '/Users/ajk/BCI/electron-angular-boilerplate/build/mac64/app-darwin-x64/app.app/Contents/Frameworks/Electron Framework.fram
ework/Versions/Current/Libraries/Libraries'
at Error (native)
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/Users/ajk/BCI/electron-angular-boilerplate/build/mac64/app-darwin-x64/app.app/Contents/Frameworks/Electron Framework.framework/Versions/Current/Libraries/Librarie
s' },
{ Error: ENOENT: no such file or directory, stat '/Users/ajk/BCI/electron-angular-boilerplate/build/mac64/app-darwin-x64/app.app/Contents/Frameworks/Electron Framework.fram
ework/Versions/A/Libraries/Libraries'
at Error (native)
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/Users/ajk/BCI/electron-angular-boilerplate/build/mac64/app-darwin-x64/app.app/Contents/Frameworks/Electron Framework.framework/Versions/A/Libraries/Libraries' } ]
undefined
make: *** [linux] Error 1
Good news:
A windows app was built and it runs on windows.
Bad news:
Linux failed after mac build! Now time to try and build a linux app with the mac app deleted.
One potential problem with the windows file is the long file path names, especially when you dive deep into some of these node modules. This might be fixed with the flatening that Node 6 does.
Ok so I deleted the mac64 folder and am keeping the win32 and win64 folders.
As expected, that worked:
$ make linux
rm -rf build/linux32
electron-packager . app --platform=linux --arch=ia32 --version=0.28.3 --out=build/linux32
(node:88992) fs: re-evaluating native module sources is not supported. If you are using the graceful-fs module, please update it to a more recent version.
Packaging app for platform linux ia32 using electron v0.28.3
Wrote new app to build/linux32/app-linux-ia32
Motivation for or Use Case
- Be able to build apps for
win32,win64,linux32andlinux64without having to remove the already built mac app. - Running the command
make appsshould not fail
Operating Systems
Mac OSX 10.11
Reproduce the Error
Please see "Overview of the Issue" above for detailed steps to reproduce
Related Issues
- None
Suggest a fix
Temporary work around is:
Move the mac to the bottom of the Makefile and run make clean-apps prior to make apps to ensure the mac build is not there.