Skip to content

Commit

Permalink
Add requirement on GDevelop 5.5 for some extensions (though not exhau…
Browse files Browse the repository at this point in the history
…stive)
  • Loading branch information
4ian committed Dec 20, 2024
1 parent 8846ad7 commit 8d0b40a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions scripts/generate-extensions-registry.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ const distDatabasesPath = path.join(distBasePath, 'extensions-database');
const distExtensionsPath = path.join(distBasePath, 'extensions');
const extensionsBaseUrl = 'https://resources.gdevelop-app.com/extensions';
const extensionsWithoutValidation = new Set(['WithThreeJS']);
const extensionsRequiring3DPhysics = new Set([
'AdvancedJump3D',
'PhysicsCharacter3DAnimator',
'PhysicsCharacter3DKeyMapper',
'PhysicsEllipseMovement3D',
]);

/**
* @param {string} path
Expand Down Expand Up @@ -227,6 +233,10 @@ const findAllRequiredBehaviorTypes = (
category: extension.category || 'General',
previewIconUrl: extension.previewIconUrl,
};
if (extensionsRequiring3DPhysics.has(name)) {
registryItem.gdevelopVersion = '5.5.220';
}

/** @type {ExtensionShortHeader} */
const extensionShortHeader = {
...registryItem,
Expand Down

0 comments on commit 8d0b40a

Please sign in to comment.