mirror of
https://github.com/toeverything/AFFiNE.git
synced 2024-12-22 20:41:53 +03:00
cc5a6e6d40
packages/frontend/web -> packages/frontend/apps/web packages/frontend/mobile -> packages/frontend/apps/mobile packages/frontend/electron -> packages/frontend/apps/electron
16 lines
391 B
TypeScript
16 lines
391 B
TypeScript
import fs from 'node:fs';
|
|
import path from 'node:path';
|
|
import { fileURLToPath } from 'node:url';
|
|
|
|
const outputRoot = fileURLToPath(
|
|
new URL(
|
|
'../out/canary/AFFiNE-canary-darwin-arm64/AFFiNE-canary.app/Contents/Resources',
|
|
import.meta.url
|
|
)
|
|
);
|
|
|
|
// todo: use asar package to check contents
|
|
fs.existsSync(path.resolve(outputRoot, 'app.asar'));
|
|
|
|
console.log('Output check passed');
|