Compare commits
30 Commits
9bbad61fc5
...
release
| Author | SHA1 | Date | |
|---|---|---|---|
| 839c3d998e | |||
| af5ee0299d | |||
| 9835c5fc6b | |||
| 826fedec66 | |||
| 93e3f1a128 | |||
| 2d52741821 | |||
| 5b3c983af9 | |||
| 86cc24c5b3 | |||
| 16e5d5d167 | |||
| 09ce10cb97 | |||
| 98875dc638 | |||
| fee219ce78 | |||
| 587ef6846c | |||
| 8d6ce50e6d | |||
| a5ee4221c4 | |||
| d7316449c2 | |||
| de40ef4ebb | |||
| 6e67684579 | |||
| 1fda517a0b | |||
| 4c2b98f99f | |||
| 7dbd07db8c | |||
| 6b14c3928f | |||
| fb403a2b30 | |||
| 4af21c5af5 | |||
| 751d334743 | |||
| 785da57ab1 | |||
| feb3480598 | |||
| 4d95c94b4f | |||
| 3ea9842c03 | |||
| 4e2136f03f |
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "autonomy-studio-launcher",
|
"name": "autonomy-studio-launcher",
|
||||||
"version": "1.1.4",
|
"version": "1.1.5",
|
||||||
"description": "Autonomy Studio v2 Frontend",
|
"description": "Autonomy Studio v2 Frontend",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": {
|
"author": {
|
||||||
|
|||||||
+10
-2
@@ -350,12 +350,17 @@ function downloadFile(
|
|||||||
|
|
||||||
const total = Number(response.headers['content-length'] ?? 0)
|
const total = Number(response.headers['content-length'] ?? 0)
|
||||||
let received = 0
|
let received = 0
|
||||||
|
let lastProgress = -1
|
||||||
const file = createWriteStream(tmpPath)
|
const file = createWriteStream(tmpPath)
|
||||||
|
|
||||||
response.on('data', (chunk: Buffer) => {
|
response.on('data', (chunk: Buffer) => {
|
||||||
received += chunk.length
|
received += chunk.length
|
||||||
if (total > 0) {
|
if (total > 0) {
|
||||||
onProgress(Math.min(99, Math.round((received / total) * 100)))
|
const progress = Math.min(99, Math.round((received / total) * 100))
|
||||||
|
if (progress !== lastProgress) {
|
||||||
|
lastProgress = progress
|
||||||
|
onProgress(progress)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -1198,9 +1203,12 @@ function createWindow(): void {
|
|||||||
if (spawnPath) {
|
if (spawnPath) {
|
||||||
const useDevLauncher = is.dev && spawnPath === resolvedDevAppPath
|
const useDevLauncher = is.dev && spawnPath === resolvedDevAppPath
|
||||||
const launchUrlArg = url ? [`--url=${encodeURIComponent(url)}`] : []
|
const launchUrlArg = url ? [`--url=${encodeURIComponent(url)}`] : []
|
||||||
|
const noSandboxArg = !useDevLauncher && process.platform === 'linux' && spawnPath.toLowerCase().endsWith('.appimage')
|
||||||
|
? ['--no-sandbox']
|
||||||
|
: []
|
||||||
const args = useDevLauncher
|
const args = useDevLauncher
|
||||||
? ['run', 'dev']
|
? ['run', 'dev']
|
||||||
: [...launchUrlArg, ...authLaunchArgs, ...(authProtocolUrl ? [authProtocolUrl] : [])]
|
: [...noSandboxArg, ...launchUrlArg, ...authLaunchArgs, ...(authProtocolUrl ? [authProtocolUrl] : [])]
|
||||||
const execBin = useDevLauncher ? 'npm' : spawnPath
|
const execBin = useDevLauncher ? 'npm' : spawnPath
|
||||||
|
|
||||||
const childEnv = createCleanChildEnv()
|
const childEnv = createCleanChildEnv()
|
||||||
|
|||||||
Reference in New Issue
Block a user