Add publisher release versions to plugins

This commit is contained in:
2026-09-18 01:16:45 -04:00
parent 166f039ae6
commit a718efc9e7
15 changed files with 167 additions and 29 deletions
+4
View File
@@ -130,6 +130,7 @@ describe('plugin kind writes to plugin destination', () => {
const { script } = createScript({
name: 'demo plugin',
kind: 'plugin',
releaseVersion: 'v3.1.0',
targetRelPath: 'demo.dll',
scopeType: 'game',
scopeValue: 't5',
@@ -149,5 +150,8 @@ describe('plugin kind writes to plugin destination', () => {
const bytes = await readFile(pluginPath);
expect(bytes.equals(Buffer.from([0x00, 0x01, 0x02, 0x03]))).toBe(true);
expect(betaId).toBeGreaterThan(0);
const { GET } = await import('../../src/routes/api/betas/[id]/+server.js');
const detail = await (await GET({ params: { id: String(betaId) } })).json();
expect(detail.scripts[0].version.release_version).toBe('v3.1.0');
});
});