-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathversion.mjs
More file actions
27 lines (21 loc) · 1.47 KB
/
Copy pathversion.mjs
File metadata and controls
27 lines (21 loc) · 1.47 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Single source for the userscript version. release.mjs rewrites this line.
export const VERSION = '4.31.0'
export const LOADER_FILE = 'colophon.user.js'
export const META_FILE = 'colophon.meta.js'
// The payload is named after a digest of its own bytes, so two builds can never
// disagree about what a given name holds. build.mjs owns the full name.
export const payloadName = (sha) => `colophon-${sha.slice(0, 16)}.payload.js`
export const PAYLOAD_GLOB = /^colophon-[0-9a-f]{16}\.payload\.js$/
// deploy.mjs exits with this when the upload landed but the purge did not. The
// files are live by then, so release.mjs keeps the new version and retries.
export const PURGE_FAILED_EXIT = 2
// What a run cut short with Ctrl-C leaves behind: the shell convention of 128
// plus the signal number. A child that handles the signal itself exits with this
// rather than dying from it, so the parent reads a status instead of a signal.
export const INTERRUPT_EXIT = 130
// Digest baked into this release as its one allowed fallback. It stays unchanged
// after publishing, which makes a tagged release build byte-for-byte reproducible.
export const FALLBACK_PAYLOAD_SHA256 = '24f4630f9159987d2a59e62ec51dd3310cf3cc297b21a053b8695b88af9c5151'
// Digest this release published. The next release copies it to the fallback
// field before building, then records its own digest here after verification.
export const PUBLISHED_PAYLOAD_SHA256 = 'd1fb37d16591320e5a9b24494f2135a7854b5115f5355f7dfaddd5b32b0a3b75'