AFFiNE/packages/frontend/electron/scripts/macos-arm64-output-check.ts

16 lines
391 B
TypeScript
Raw Normal View History

import fs from 'node:fs';
import path from 'node:path';
2023-08-22 18:16:26 +03:00
import { fileURLToPath } from 'node:url';
const outputRoot = fileURLToPath(
new URL(
'../out/canary/AFFiNE-canary-darwin-arm64/AFFiNE-canary.app/Contents/Resources',
import.meta.url
)
);
2023-08-02 18:56:00 +03:00
// todo: use asar package to check contents
fs.existsSync(path.resolve(outputRoot, 'app.asar'));
console.log('Output check passed');