Rename the packaged asar file (#857)

This commit is contained in:
Lipis 2020-02-29 16:23:09 +01:00 committed by GitHub
parent b22ceb2dcf
commit 5fff1f2d3e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ const now = new Date();
const data = JSON.stringify( const data = JSON.stringify(
{ {
app: `excalidraw-${versionDate(now)}.asar`, asar: `excalidraw.asar`,
version: versionDate(now), version: versionDate(now),
}, },
undefined, undefined,
@ -31,7 +31,7 @@ fs.writeFileSync(path.join("build", "version.json"), data);
(async () => { (async () => {
const src = "build/"; const src = "build/";
const dest = path.join("build", `excalidraw-${versionDate(now)}.asar`); const dest = path.join("build", `excalidraw.asar`);
await asar.createPackage(src, dest); await asar.createPackage(src, dest);
})(); })();