MCPcopy Create free account
hub / github.com/msgbyte/tailchat / getAsarFilePath

Function getAsarFilePath

client/desktop-old/scripts/update.ts:27–41  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25const outputDir = path.resolve(__dirname, '../out/');
26
27function getAsarFilePath() {
28 if (os.platform() === 'win32') {
29 return path.resolve(
30 outputDir,
31 './prod/tailchat-desktop-win32-x64/resources/app.asar'
32 );
33 } else if (os.platform() === 'darwin') {
34 return path.resolve(
35 outputDir,
36 './prod/tailchat-desktop.app/Contents/Resources/app.asar'
37 );
38 }
39
40 throw new Error('Not support');
41}
42
43async function createUpdateZipAndDeploy() {
44 const asarPath = getAsarFilePath();

Callers 1

createUpdateZipAndDeployFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected