Skip to content

Commit

Permalink
fix: incorrect required Playnite API version (#624)
Browse files Browse the repository at this point in the history
Closes #623
  • Loading branch information
andrew-codes authored Nov 14, 2024
2 parents 6e2e5b2 + a1a4895 commit e0b6921
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
18 changes: 9 additions & 9 deletions apps/PlayniteWebPlugin/src/manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ Packages:
- Version: 9.4.1
PackageUrl: https://github.com/andrew-codes/playnite-web/releases/download/v9.4.1/PlayniteWeb_ec3439e3-51ee-43cb-9a8a-5d82cf45edac_9_4_1.pext
ReleaseDate: 2024-11-10
RequiredApiVersion: 5.6.0
RequiredApiVersion: 6.11.0
Changelog:
- "chore: commit ext & manifest on release"
- "fix: no dry run"
- "fix: update manifest in repo"
- "chore: automate manifest creation (#616)"
- "chore: automate manifest creation"
- 'chore: commit ext & manifest on release'
- 'fix: no dry run'
- 'fix: update manifest in repo'
- 'chore: automate manifest creation (#616)'
- 'chore: automate manifest creation'
- Version: 9.4.2
PackageUrl: https://github.com/andrew-codes/playnite-web/releases/download/v9.4.2/PlayniteWeb_ec3439e3-51ee-43cb-9a8a-5d82cf45edac_9_4_2.pext
ReleaseDate: 2024-11-13
RequiredApiVersion: 5.6.0
RequiredApiVersion: 6.11.0
Changelog:
- "fix: run state is reported correctly to UI (#622)"
- "fix: do not override run state with incorrect data"
- 'fix: run state is reported correctly to UI (#622)'
- 'fix: do not override run state with incorrect data'
5 changes: 3 additions & 2 deletions libs/playnite-plugin-installer-manifest/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@ const verifyRelease = async (pluginConfig, context) => {
debug('issue: %o', changelogContext.issue)
debug('commit: %o', changelogContext.commit)

const { manifestFilePath, extensionFilePath } = pluginConfig
const { manifestFilePath, extensionFilePath, requiredApiVersion } =
pluginConfig

const extension = parse(
fs.readFileSync(join(context.cwd, extensionFilePath), 'utf8'),
Expand All @@ -111,7 +112,7 @@ const verifyRelease = async (pluginConfig, context) => {
extension.Id
}_${nextRelease.version.replace(/\./g, '_')}.pext`,
ReleaseDate: new Date().toISOString().split('T')[0],
RequiredApiVersion: '5.6.0',
RequiredApiVersion: requiredApiVersion,
Changelog: [],
}
await pipeline(parsedCommits, async function* (changelog) {
Expand Down
1 change: 1 addition & 0 deletions release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const config = {
{
manifestFilePath: 'apps/PlayniteWebPlugin/src/manifest.yaml',
extensionFilePath: 'apps/PlayniteWebPlugin/src/extension.yaml',
requiredApiVersion: '6.11.0',
presetConfig: {
types: [
{ type: 'feat', section: 'Features', hidden: false },
Expand Down

0 comments on commit e0b6921

Please sign in to comment.