-
Notifications
You must be signed in to change notification settings - Fork 302
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
Windows app icon #19
Comments
FYI, I created the icon using icon fx. I assume that's fine |
Which version of node-webkit are you using? Because we got this bug two days ago on windows, and then we changed the version of node-webkit and it's working fine (we didn't linked this issue to the ico but maybe it's this). |
@SamyPesse |
Please, test using |
Ok, that took forever. It's the same with @SamyPesse, anything else you want me to try before I update back to |
Waaait. It's correct in the taskbar (although very blurry, maybe that's icon fx's fault). The .exe has the default icon still though. |
@adam-lynch I am having the exact same issue. The .exe shows the default node webkit icon and if I remove the I am using the node-webkit-builder from a gulp task. Here is the gulpy output.
and here is my gulp file: var gulp = require('gulp'),
gutil = require('gulp-util'),
flatten = require('gulp-flatten'),
rimraf = require('rimraf'),
exec = require('child_process').spawn,
NwBuilder = require('node-webkit-builder');
gulp.task('copy-js', function () {
return gulp.src('vendor/**/*.min.js')
.pipe(flatten())
.pipe(gulp.dest('./build/src/js'));
});
gulp.task('copy-css', function () {
return gulp.src('vendor/**/*.min.css')
.pipe(flatten())
.pipe(gulp.dest('./build/src/css'));
});
gulp.task('copy-app', function () {
return gulp.src(['app/**', 'package.json'])
.pipe(gulp.dest('./build/src'));
});
gulp.task('copy', ['copy-js', 'copy-css', 'copy-app']);
gulp.task('clean-release', function (cb) {
rimraf('./build/release', cb);
});
gulp.task('build-nw', ['copy', 'clean-release'], function () {
var nw = new NwBuilder({
platforms: ['win'],
files: 'build/src/**',
winIco: 'build/src/ico/main.ico',
buildDir: 'build/release',
cacheDir: 'build/cache'
});
// Log stuff you want
nw.on('log', function (msg) {
// Ignore 'Zipping... messages
if (msg.indexOf('Zipping') !== 0)
console.log(msg)
});
// nw.build();
// Build retruns a promise
nw.build().then(function () {
console.log('All Done!');
}).catch(function (error) {
console.error(error);
});
});
gulp.task('run', function () {
exec('D:\\Github\\social-notifs\\build\\release\\Social-Notifs\\win\\nw.exe')
});
gulp.task('build', ['build-nw']);
gulp.task('default', ['build']); |
This is unrelated to the issue, but currently when I build a release it goes into the |
I still have problems with winIco, is it fixed? |
winIco is working. One note is that if you are on Mac or Linux you need to have Wine installed for it to work properly. This is a requirement created by the rcedit module being used to modify the exe resources. I added some error handling and documentation surrounding this here ef7d006 |
@gabepaez that should probably be noted somewhere |
@adam-lynch I added it to the Readme for this project here ef7d006 |
I've been crazy busy but I just built on Windows using this param and it worked great. Thanks 👍 |
Passing a
winIco
breaks things. I get the dummy "node webkit" (in ascii art) app.macIcns
works fine.The text was updated successfully, but these errors were encountered: