()
| 25 | const outputDir = path.resolve(__dirname, '../out/'); |
| 26 | |
| 27 | function 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 | |
| 43 | async function createUpdateZipAndDeploy() { |
| 44 | const asarPath = getAsarFilePath(); |
no outgoing calls
no test coverage detected