mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00
Compare commits
2 Commits
v5.0.0-bet
...
v5.0.0-bet
Author | SHA1 | Date | |
---|---|---|---|
![]() |
46338bf314 | ||
![]() |
0a7880f98e |
@@ -56,9 +56,11 @@
|
||||
</script>
|
||||
<script src="%PUBLIC_URL%/External/monaco-editor-min/vs/loader.js"></script>
|
||||
<script>
|
||||
// Restore back the Node.js require (Electron)
|
||||
// Restore back the Node.js require (Electron) and delete "define" which can
|
||||
// trick some libraries into thinking they are in an AMD (RequireJS) environment.
|
||||
amdRequire = require;
|
||||
require = nodeRequire;
|
||||
define = undefined;
|
||||
|
||||
// Set up Monaco Editor workers support
|
||||
amdRequire.config({
|
||||
|
@@ -1,8 +1,8 @@
|
||||
// @flow
|
||||
|
||||
import optionalRequire from './OptionalRequire.js';
|
||||
const archiver = optionalRequire('archiver');
|
||||
const fs = optionalRequire('fs');
|
||||
const archiver = optionalRequire('archiver');
|
||||
|
||||
/**
|
||||
* Archive the given folder to a file. Only available when running on Electron runtime.
|
||||
|
@@ -26,6 +26,8 @@ const optionalRequire = (moduleName, config = {
|
||||
return null;
|
||||
} catch (ex) {
|
||||
if (config.rethrowException) throw ex;
|
||||
|
||||
console.error('Exception while requiring module (from optionalRequire):', ex);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
@@ -2,7 +2,7 @@
|
||||
"name": "gdevelop",
|
||||
"productName": "GDevelop 5",
|
||||
"description": "GDevelop 5 IDE running on the Electron runtime",
|
||||
"version": "5.0.0-beta49",
|
||||
"version": "5.0.0-beta50",
|
||||
"author": "Florian Rival",
|
||||
"license": "MIT",
|
||||
"homepage": "http://gdevelop-app.com",
|
||||
|
Reference in New Issue
Block a user