release: bump version to 0.81.0
This commit is contained in:
1 parent
6d310f4dbe
commit
b3d2d9e9f1
156 files changed
+15910
-1385
No files matched your search
@@ -16,6 +16,11 @@ const mainBuild = await Bun.build({
|
||||
external: ['electron'],
|
||||
minify: true,
|
||||
naming: 'index.cjs',
|
||||
define: {
|
||||
'process.env.PLANET_EARTH_DESKTOP_HANDSHAKE_SECRET': JSON.stringify(
|
||||
process.env.PLANET_EARTH_DESKTOP_HANDSHAKE_SECRET || '',
|
||||
),
|
||||
},
|
||||
})
|
||||
|
||||
if (!mainBuild.success) {
|
||||
@@ -36,4 +41,32 @@ if (!preloadBuild.success) {
|
||||
throw new AggregateError(preloadBuild.logs, 'Electron preload build failed')
|
||||
}
|
||||
|
||||
const indicatorPreloadBuild = await Bun.build({
|
||||
entrypoints: [join(desktopRoot, 'src/preload/recording-indicator.ts')],
|
||||
outdir: join(outDir, 'preload'),
|
||||
target: 'node',
|
||||
format: 'cjs',
|
||||
external: ['electron'],
|
||||
minify: true,
|
||||
naming: 'recording-indicator.cjs',
|
||||
})
|
||||
|
||||
if (!indicatorPreloadBuild.success) {
|
||||
throw new AggregateError(indicatorPreloadBuild.logs, 'Electron indicator preload build failed')
|
||||
}
|
||||
|
||||
const cursorPreloadBuild = await Bun.build({
|
||||
entrypoints: [join(desktopRoot, 'src/preload/recording-cursor.ts')],
|
||||
outdir: join(outDir, 'preload'),
|
||||
target: 'node',
|
||||
format: 'cjs',
|
||||
external: ['electron'],
|
||||
minify: true,
|
||||
naming: 'recording-cursor.cjs',
|
||||
})
|
||||
|
||||
if (!cursorPreloadBuild.success) {
|
||||
throw new AggregateError(cursorPreloadBuild.logs, 'Electron cursor preload build failed')
|
||||
}
|
||||
|
||||
console.log('Built Electron main and preload to dist-electron/')
|
||||
Reference in new issue
Block a user