Initial commit: Premier Gunner tracker + StartOS 0.4.0 s9pk package

This commit is contained in:
Keysat
2026-05-31 21:04:48 -05:00
commit 0265699504
67 changed files with 4578 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
import { IMPOSSIBLE, utils, VersionInfo } from '@start9labs/start-sdk'
import { store } from '../fileModels/store'
export const current = VersionInfo.of({
version: '0.1.0:0',
releaseNotes: {
en_US: 'Initial release of Premier Gunner for StartOS.',
es_ES: 'Versión inicial de Premier Gunner para StartOS.',
de_DE: 'Erste Veröffentlichung von Premier Gunner für StartOS.',
pl_PL: 'Pierwsze wydanie Premier Gunner dla StartOS.',
fr_FR: 'Première version de Premier Gunner pour StartOS.',
},
migrations: {
up: async ({ effects }) => {
// Generate a random login password on first install so the app is never
// left on a known default. The user can change it via "Set Login Password".
const existing = await store.read().once()
if (!existing) {
const password = utils.getDefaultString({
charset: 'a-z,A-Z,2-9',
len: 16,
})
await store.write(effects, { password })
}
},
down: IMPOSSIBLE,
},
})