Rename the packaged asar file (#857)
This commit is contained in:
parent
b22ceb2dcf
commit
5fff1f2d3e
@ -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);
|
||||||
})();
|
})();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user