Fix desktop release runtime bundling
This commit is contained in:
@@ -92,6 +92,12 @@ jobs:
|
|||||||
- name: Build web app for Tauri
|
- name: Build web app for Tauri
|
||||||
run: npm run build:web --workspace=@getpaseo/app
|
run: npm run build:web --workspace=@getpaseo/app
|
||||||
|
|
||||||
|
- name: Build managed runtime for macOS
|
||||||
|
run: npm run prepare:managed-runtime --workspace=@getpaseo/desktop
|
||||||
|
|
||||||
|
- name: Smoke check managed runtime for macOS
|
||||||
|
run: npm run smoke:managed-daemon --workspace=@getpaseo/desktop
|
||||||
|
|
||||||
- name: Set desktop version from tag
|
- name: Set desktop version from tag
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -220,6 +226,12 @@ jobs:
|
|||||||
- name: Build web app for Tauri
|
- name: Build web app for Tauri
|
||||||
run: npm run build:web --workspace=@getpaseo/app
|
run: npm run build:web --workspace=@getpaseo/app
|
||||||
|
|
||||||
|
- name: Build managed runtime for Linux
|
||||||
|
run: npm run prepare:managed-runtime --workspace=@getpaseo/desktop
|
||||||
|
|
||||||
|
- name: Smoke check managed runtime for Linux
|
||||||
|
run: npm run smoke:managed-daemon --workspace=@getpaseo/desktop
|
||||||
|
|
||||||
- name: Set desktop version from tag
|
- name: Set desktop version from tag
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
@@ -337,6 +349,12 @@ jobs:
|
|||||||
- name: Build web app for Tauri
|
- name: Build web app for Tauri
|
||||||
run: npm run build:web --workspace=@getpaseo/app
|
run: npm run build:web --workspace=@getpaseo/app
|
||||||
|
|
||||||
|
- name: Build managed runtime for Windows
|
||||||
|
run: npm run prepare:managed-runtime --workspace=@getpaseo/desktop
|
||||||
|
|
||||||
|
- name: Smoke check managed runtime for Windows
|
||||||
|
run: npm run smoke:managed-daemon --workspace=@getpaseo/desktop
|
||||||
|
|
||||||
- name: Set desktop version from tag
|
- name: Set desktop version from tag
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -35,8 +35,8 @@ const styles = StyleSheet.create((theme) => ({
|
|||||||
borderColor: theme.colors.accent,
|
borderColor: theme.colors.accent,
|
||||||
},
|
},
|
||||||
secondary: {
|
secondary: {
|
||||||
backgroundColor: theme.colors.surface2,
|
backgroundColor: theme.colors.surface3,
|
||||||
borderColor: theme.colors.border,
|
borderColor: theme.colors.surface3,
|
||||||
},
|
},
|
||||||
outline: {
|
outline: {
|
||||||
backgroundColor: "transparent",
|
backgroundColor: "transparent",
|
||||||
|
|||||||
@@ -364,7 +364,7 @@ export function LocalDaemonSection({ appVersion }: LocalDaemonSectionProps) {
|
|||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="secondary"
|
||||||
size="sm"
|
size="sm"
|
||||||
style={styles.primaryActionButton}
|
style={styles.primaryActionButton}
|
||||||
onPress={handleToggleDaemonManagement}
|
onPress={handleToggleDaemonManagement}
|
||||||
@@ -388,7 +388,7 @@ export function LocalDaemonSection({ appVersion }: LocalDaemonSectionProps) {
|
|||||||
) : null}
|
) : null}
|
||||||
</View>
|
</View>
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="secondary"
|
||||||
size="sm"
|
size="sm"
|
||||||
style={styles.primaryActionButton}
|
style={styles.primaryActionButton}
|
||||||
onPress={handleUpdateLocalDaemon}
|
onPress={handleUpdateLocalDaemon}
|
||||||
@@ -410,7 +410,7 @@ export function LocalDaemonSection({ appVersion }: LocalDaemonSectionProps) {
|
|||||||
{cliStatusMessage ? <Text style={styles.statusText}>{cliStatusMessage}</Text> : null}
|
{cliStatusMessage ? <Text style={styles.statusText}>{cliStatusMessage}</Text> : null}
|
||||||
</View>
|
</View>
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="secondary"
|
||||||
size="sm"
|
size="sm"
|
||||||
style={styles.secondaryActionButton}
|
style={styles.secondaryActionButton}
|
||||||
onPress={handleToggleCliShim}
|
onPress={handleToggleCliShim}
|
||||||
@@ -434,12 +434,12 @@ export function LocalDaemonSection({ appVersion }: LocalDaemonSectionProps) {
|
|||||||
</View>
|
</View>
|
||||||
<View style={styles.actionGroup}>
|
<View style={styles.actionGroup}>
|
||||||
{(managedLogs?.logPath ?? managedStatus?.logPath) ? (
|
{(managedLogs?.logPath ?? managedStatus?.logPath) ? (
|
||||||
<Button variant="outline" size="sm" onPress={handleCopyLogPath}>
|
<Button variant="secondary" size="sm" onPress={handleCopyLogPath}>
|
||||||
Copy path
|
Copy path
|
||||||
</Button>
|
</Button>
|
||||||
) : null}
|
) : null}
|
||||||
<Button
|
<Button
|
||||||
variant="outline"
|
variant="secondary"
|
||||||
size="sm"
|
size="sm"
|
||||||
onPress={handleOpenLogs}
|
onPress={handleOpenLogs}
|
||||||
disabled={!managedLogs}
|
disabled={!managedLogs}
|
||||||
@@ -455,7 +455,7 @@ export function LocalDaemonSection({ appVersion }: LocalDaemonSectionProps) {
|
|||||||
Connect your phone to this computer.
|
Connect your phone to this computer.
|
||||||
</Text>
|
</Text>
|
||||||
</View>
|
</View>
|
||||||
<Button variant="outline" size="sm" style={styles.secondaryActionButton} onPress={handleOpenPairingModal}>
|
<Button variant="secondary" size="sm" style={styles.secondaryActionButton} onPress={handleOpenPairingModal}>
|
||||||
Pair device
|
Pair device
|
||||||
</Button>
|
</Button>
|
||||||
</View>
|
</View>
|
||||||
|
|||||||
@@ -51,6 +51,15 @@ function resolvePackagedBinary() {
|
|||||||
`Paseo_${desktopPackageJson.version}_amd64.AppImage`
|
`Paseo_${desktopPackageJson.version}_amd64.AppImage`
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (process.platform === "win32") {
|
||||||
|
return path.join(
|
||||||
|
desktopRoot,
|
||||||
|
"src-tauri",
|
||||||
|
"target",
|
||||||
|
"release",
|
||||||
|
"Paseo.exe"
|
||||||
|
);
|
||||||
|
}
|
||||||
throw new Error(`Managed desktop smoke is not implemented for ${process.platform} yet.`);
|
throw new Error(`Managed desktop smoke is not implemented for ${process.platform} yet.`);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user