Skip to content

Commit

Permalink
Fix download of libGD.js not downloading the .wasm file (#2448)
Browse files Browse the repository at this point in the history
Don't show in changelog
  • Loading branch information
4ian authored Mar 18, 2021
1 parent ca3e0c8 commit acffff0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions newIDE/app/scripts/import-libGD.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ const sourceDirectory = '../../../Binaries/embuild/GDevelop.js';
const destinationTestDirectory = '../node_modules/libGD.js-for-tests-only';
const alreadyHasLibGdJs =
shell.test('-f', '../public/libGD.js') &&
shell.test('-f', '../public/libGD.js.mem') &&
shell.test('-f', '../public/libGD.wasm') &&
shell.test('-f', destinationTestDirectory + '/index.js') &&
shell.test('-f', destinationTestDirectory + '/libGD.js.mem');
shell.test('-f', destinationTestDirectory + '/libGD.wasm');

if (shell.mkdir('-p', destinationTestDirectory).stderr) {
shell.echo('❌ Error while creating node_modules folder for libGD.js');
Expand Down Expand Up @@ -107,7 +107,7 @@ if (shell.test('-f', path.join(sourceDirectory, 'libGD.js'))) {
const downloadLibGdJs = baseUrl =>
Promise.all([
downloadFile(baseUrl + '/libGD.js', '../public/libGD.js'),
downloadFile(baseUrl + '/libGD.js.mem', '../public/libGD.js.mem'),
downloadFile(baseUrl + '/libGD.wasm', '../public/libGD.wasm'),
]).then(
responses => {},
error => {
Expand Down Expand Up @@ -142,8 +142,8 @@ if (shell.test('-f', path.join(sourceDirectory, 'libGD.js'))) {
!shell.cp('../public/libGD.js', destinationTestDirectory + '/index.js')
.stderr &&
!shell.cp(
'../public/libGD.js.mem',
destinationTestDirectory + '/libGD.js.mem'
'../public/libGD.wasm',
destinationTestDirectory + '/libGD.wasm'
).stderr
) {
shell.echo('✅ Copied libGD.js to node_modules folder');
Expand Down

0 comments on commit acffff0

Please sign in to comment.