release: bump version to 0.84.0
This commit is contained in:
1 parent
3b1b9ef68c
commit
e1cc27f13d
241 files changed
+42779
-6027
No files matched your search
@@ -1,7 +1,7 @@
|
||||
import { createHash } from 'node:crypto'
|
||||
import { cpSync, existsSync, mkdirSync, readdirSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { createRequire } from 'node:module'
|
||||
import { dirname, join } from 'node:path'
|
||||
import { dirname, join, sep } from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
|
||||
import { compileEarthRuntime } from '../../frontend/scripts/compile-earth-runtime.mjs'
|
||||
@@ -60,6 +60,7 @@ for (const [name, asset] of assets) {
|
||||
const workerEntrypoints = [
|
||||
join(earthSourceDir, 'js/satellite-position-worker.js'),
|
||||
join(earthSourceDir, 'js/surface-line-lod-worker.js'),
|
||||
join(earthSourceDir, 'js/boundary-tile-worker.js'),
|
||||
]
|
||||
const workerBuild = await Bun.build({
|
||||
entrypoints: workerEntrypoints,
|
||||
@@ -73,10 +74,17 @@ if (!workerBuild.success) {
|
||||
throw new AggregateError(workerBuild.logs, 'Failed to bundle Earth Web Workers')
|
||||
}
|
||||
|
||||
// Earth boundary PMTiles artifacts are served by the backend API
|
||||
// (/api/v1/earth/boundaries/...); legacy local builds must never ship in the
|
||||
// desktop installer.
|
||||
const legacyBoundaryArtifacts = join(earthSourceDir, 'data', 'boundaries')
|
||||
for (const folder of ['css', 'assets', 'data']) {
|
||||
const srcFolder = join(earthSourceDir, folder)
|
||||
if (existsSync(srcFolder)) {
|
||||
cpSync(srcFolder, join(bundleEarthDir, folder), { recursive: true })
|
||||
cpSync(srcFolder, join(bundleEarthDir, folder), {
|
||||
recursive: true,
|
||||
filter: (src) => src !== legacyBoundaryArtifacts && !src.startsWith(`${legacyBoundaryArtifacts}${sep}`),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user