Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository has been archived by the owner. It is now read-only.

Commit 366d2a9

Browse files
committed
update and build tools for windows
1 parent be30e60 commit 366d2a9

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

app/updater.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module.exports.check = function() {
1212
if (semver.gt(data.version, manifest.version)) {
1313
var shouldDownload = confirm('A newer version of P5 is available. Do you want to download it?');
1414
if (shouldDownload) {
15-
gui.Shell.openExternal(downloadURL + 'v' + data.version + '/p5.zip');
15+
gui.Shell.openExternal(downloadURL + 'v' + data.version + '/p5-' + (isWin ? 'win' : 'mac') + '.zip');
1616
}
1717
}
1818
}

gulpfile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ function latest () {
123123
console.log('Compressing...');
124124

125125
builderOptions.platforms.forEach(function(p){
126+
var output = 'p5-' + (p.indexOf('win') > -1 ? 'win' : 'mac') + '.zip';
126127
gulp.src(binaryDir + '/' + p +'/**').
127-
pipe(zip('p5.zip')).
128+
pipe(zip(output)).
128129
pipe(gulp.dest(latestDir)).
129130
on('end', function(){
130131
console.log('Build compressed');

0 commit comments

Comments
 (0)