Compare commits

..

No commits in common. "c2264c42fc65081257f123ab5ea548575d5330dd" and "f1fc4fcde8d19fc83eb782b0b20f6850bf726076" have entirely different histories.

3 changed files with 1 additions and 8 deletions

View File

@ -9,7 +9,6 @@ import { join } from 'path'
const DIST_DIR = join(import.meta.dir, '..', 'dist')
const ENTRY_POINT = join(import.meta.dir, '..', 'src', 'cli', 'index.ts')
const GIT_SHA = Bun.spawnSync(['git', 'rev-parse', '--short', 'HEAD']).stdout.toString().trim() || 'unknown'
interface BuildTarget {
arch: string
@ -41,7 +40,6 @@ async function buildCurrent() {
'bun',
'--minify',
'--sourcemap=external',
`--define=__GIT_SHA__="${GIT_SHA}"`,
'--outfile',
output,
], {
@ -75,7 +73,6 @@ async function buildTarget(target: BuildTarget) {
`bun-${target.os}-${target.arch}`,
'--minify',
'--sourcemap=external',
`--define=__GIT_SHA__="${GIT_SHA}"`,
'--outfile',
output,
], {

View File

@ -3,7 +3,6 @@ import { program } from 'commander'
import color from 'kleur'
import pkg from '../../package.json'
import { SHA } from './version'
import {
cronList,
cronLog,
@ -30,7 +29,7 @@ import {
program
.name('toes')
.version(`v${pkg.version}-${SHA}`, '-v, --version')
.version(`v${pkg.version}`, '-v, --version')
.addHelpText('beforeAll', (ctx) => {
if (ctx.command === program) {
return color.bold().cyan('🐾 Toes') + color.gray(' - personal web appliance\n')

View File

@ -1,3 +0,0 @@
declare var __GIT_SHA__: string
export const SHA: string = typeof __GIT_SHA__ !== 'undefined' ? __GIT_SHA__ : 'dev'