Fix not building peerjs for web runtime (#6758)

This commit is contained in:
Clément Pasteau
2024-07-09 12:06:10 +02:00
committed by GitHub
parent 11ab92fc0e
commit 7badacd24a
3 changed files with 15 additions and 2 deletions

1
.gitattributes vendored
View File

@@ -5,6 +5,7 @@ Extensions/PhysicsBehavior/box2djs/* linguist-vendored
Extensions/Physics2Behavior/box2d.js linguist-vendored Extensions/Physics2Behavior/box2d.js linguist-vendored
Extensions/BBText/pixi-multistyle-text/* linguist-vendored Extensions/BBText/pixi-multistyle-text/* linguist-vendored
Extensions/P2P/A_peer.js linguist-vendored Extensions/P2P/A_peer.js linguist-vendored
Extensions/Multiplayer/peer.js linguist-vendored
Extensions/Shopify/shopify-buy.umd.polyfilled.min.js linguist-vendored Extensions/Shopify/shopify-buy.umd.polyfilled.min.js linguist-vendored
Extensions/TileMap/pako/* linguist-vendored Extensions/TileMap/pako/* linguist-vendored
Extensions/TileMap/pixi-tilemap/* linguist-vendored Extensions/TileMap/pixi-tilemap/* linguist-vendored

View File

@@ -9,7 +9,17 @@ const extensionsRuntimePath = path.join(gdevelopRootPath, 'Extensions');
const gdjsRuntimePath = path.join(gdjsRootPath, 'Runtime'); const gdjsRuntimePath = path.join(gdjsRootPath, 'Runtime');
// The extensions to be included in the bundled Runtime (will be built with esbuild or copied). // The extensions to be included in the bundled Runtime (will be built with esbuild or copied).
const allowedExtensions = ['.js', '.ts', '.tsx', '.html', '.json', '.xml', '.map', '.wasm', '.txt']; const allowedExtensions = [
'.js',
'.ts',
'.tsx',
'.html',
'.json',
'.xml',
'.map',
'.wasm',
'.txt',
];
// These extensions will be built with esbuild (the other will be copied). // These extensions will be built with esbuild (the other will be copied).
const transformIncludedExtensions = ['.js', '.ts', '.tsx']; const transformIncludedExtensions = ['.js', '.ts', '.tsx'];
@@ -40,6 +50,7 @@ const untransformedPaths = [
'Extensions/DialogueTree/bondage.js/dist', 'Extensions/DialogueTree/bondage.js/dist',
'Extensions/Effects/pixi-filters', 'Extensions/Effects/pixi-filters',
'Extensions/P2P/A_peer.js', 'Extensions/P2P/A_peer.js',
'Extensions/Multiplayer/peer.js',
'Extensions/ParticleSystem/pixi-particles-pixi-renderer.min.js', 'Extensions/ParticleSystem/pixi-particles-pixi-renderer.min.js',
'Extensions/Physics2Behavior/box2d.js', 'Extensions/Physics2Behavior/box2d.js',
'Extensions/PhysicsBehavior/box2djs', 'Extensions/PhysicsBehavior/box2djs',

View File

@@ -49,6 +49,7 @@
"Extensions/Effects/pixi-filters/filter-alpha.js", "Extensions/Effects/pixi-filters/filter-alpha.js",
"SharedLibs/TileMapHelper/**/*", "SharedLibs/TileMapHelper/**/*",
"Extensions/Spine/pixi-spine/pixi-spine.js", "Extensions/Spine/pixi-spine/pixi-spine.js",
"Extensions/P2P/A_peer.js" "Extensions/P2P/A_peer.js",
"Extensions/Multiplayer/peer.js"
] ]
} }