Merge branch 'main' of https://git.nianxx.cn/wangxuming/makelore
# Conflicts: # electron/coding-runtime/pi/extensions/makelore-runtime.ts
This commit is contained in:
commit
03a9e866d4
128 files changed
+8282
-3026
No files matched your search
@@ -45,6 +45,17 @@ describe('after-pack package hygiene', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('rejects the Makelore project catalog in packaged app output', () => {
|
||||
const appOutDir = makeTempDir();
|
||||
const resourcesDir = join(appOutDir, 'resources');
|
||||
mkdirSync(resourcesDir, { recursive: true });
|
||||
writeFileSync(join(resourcesDir, 'makelore-projects.json'), JSON.stringify({ projects: {} }));
|
||||
|
||||
expect(() => afterPack.assertNoPersistedUserData?.(appOutDir)).toThrow(
|
||||
/Persisted Makelore user data must not be packaged/,
|
||||
);
|
||||
});
|
||||
|
||||
it('allows normal package resources without persisted user data files', () => {
|
||||
const appOutDir = makeTempDir();
|
||||
const resourcesDir = join(appOutDir, 'resources', 'resources', 'icons');
|
||||
|
||||
Reference in new issue
Block a user