thinktecture / boardz-cross-platform-sample

Sample application for demonstrating various aspects of modern cross-platform applications - using Angular 2, Cordova, Electron & gulp. With a .NET Web API & SignalR backend.
MIT License
78 stars 30 forks source link

Cordova Gulp build task does not work properly on Windows #14

Closed ChristianWeyer closed 8 years ago

ChristianWeyer commented 9 years ago

...

[21:38:36] Starting 'cordova:build'... cp: missing destination file operand after ‘..\resources" resources/’ Try 'cp --help' for more information. WARNING: Applications for platform ios can not be built on this OS - win32. Adding ios project... iOS project created with cordova-ios@3.9.1 cp: no such file or directory: C:\Users\chris\Documents\GitHub\boardz-cross-platform-sample\cordova\resources\ios\icon\icon-60.png

...

ThorstenHans commented 9 years ago

May be the ending forward-slashes (see https://github.com/thinktecture/boardz-cross-platform-sample/blob/master/gulpTasks/cordova.js - Line 78 and 88 for example)

ManuelRauber commented 8 years ago

Valid point from @ThorstenHans

Additionally a sh.exec('cp...') can not work at all on Windows. Using gulp.src now