Skip to content

Commit

Permalink
build(gulp): automatic zipping of binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
fooooooooooooooo committed Sep 7, 2021
1 parent 44cce78 commit b715ae8
Show file tree
Hide file tree
Showing 3 changed files with 1,990 additions and 39 deletions.
24 changes: 24 additions & 0 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
const gulp = require('gulp');
const zip = require('gulp-zip');

function packWin64(cb) {
gulp
.src('dist/win-unpacked/*')
.pipe(zip('fc-injector_win64.zip'))
.pipe(gulp.dest('dist'));
cb();
}

function packWin32(cb) {
gulp
.src('dist/win-ia32-unpacked/*')
.pipe(zip('fc-injector_win32.zip'))
.pipe(gulp.dest('dist'));

cb();
}

exports.packWin32 = packWin32;
exports.packWin64 = packWin64;

exports.default = gulp.parallel(packWin32, packWin64);
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
"electron-devtools-installer": "3.2.0",
"eslint": "7.32.0",
"eslint-plugin-vue": "7.17.0",
"gulp": "^4.0.2",
"gulp-zip": "^5.1.0",
"lint-staged": "11.1.2",
"prettier": "^2.3.2",
"prettier-eslint": "^13.0.0",
Expand Down
Loading

0 comments on commit b715ae8

Please sign in to comment.