Initial commit: Premier Gunner tracker + StartOS 0.4.0 s9pk package
This commit is contained in:
@@ -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,
|
||||
},
|
||||
})
|
||||
@@ -0,0 +1,7 @@
|
||||
import { VersionGraph } from '@start9labs/start-sdk'
|
||||
import { current } from './current'
|
||||
|
||||
export const versionGraph = VersionGraph.of({
|
||||
current,
|
||||
other: [],
|
||||
})
|
||||
Reference in New Issue
Block a user