Skip to content

Commit 79c21a7

Browse files
committed
Fix gulps dumb encoding option
1 parent 4b1da4e commit 79c21a7

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

controller-support.zip

-13.9 MB
Binary file not shown.

gulpfile.mjs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const filesToCopy = [
1515
'default.gamecontroller.amgp'
1616
];
1717

18-
async function buildTask(done) {
18+
async function buildTask() {
1919
// Build main extension (Node.js)
2020
const nodeBuild = esbuild.build({
2121
bundle: true,
@@ -27,15 +27,14 @@ async function buildTask(done) {
2727

2828
const config = await loadConfig('./rslib.config.ts');
2929

30-
Promise.all([nodeBuild, rslibBuild({
30+
await Promise.all([nodeBuild, rslibBuild({
3131
...config.content,
3232
mode: 'development'
3333
})])
3434
.catch(console.error)
35-
.finally(done);
3635
}
3736

38-
async function watchTask(done) {
37+
async function watchTask() {
3938
const ctx = await esbuild.context({
4039
bundle: true,
4140
entryPoints: ['./src/extension.ts'],
@@ -51,9 +50,8 @@ async function watchTask(done) {
5150
watch: true
5251
});
5352

54-
return Promise.all([ctx.watch(), renderer])
55-
.catch(console.error)
56-
.finally(done);
53+
await Promise.all([ctx.watch(), renderer])
54+
.catch(console.error);
5755
}
5856

5957
function clean(cb) {
@@ -92,7 +90,7 @@ function packagePathTask(src, filter) {
9290
}
9391

9492
function packageExtTask() {
95-
return gulp.src('package/**/*').pipe(zip(packageJson.artifactName)).pipe(gulp.dest('.'));
93+
return gulp.src('package/**/*', { encoding: false }).pipe(zip(packageJson.artifactName)).pipe(gulp.dest('.'));
9694
}
9795

9896
export const build = series(buildTask);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"displayName": "Controller Support",
44
"description": "Enables individual game mapping of controller to keyboard inputs",
55
"author": "Flashpoint Archive",
6-
"version": "1.0.1",
6+
"version": "1.0.2",
77
"main": "./dist/extension.js",
88
"icon": "icon.svg",
99
"artifactName": "controller-support.zip",

0 commit comments

Comments
 (0)