Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

release-app fix

Louis Beaumont74f1acccd634
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 027cbd4cf..7b9d80286 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -87,12 +87,17 @@ jobs:
- name: Update version in Cargo.toml
if: github.event.inputs.commit_hash && github.event.inputs.version
+ shell: ${{ runner.os == 'Windows' && 'pwsh' || 'bash' }}
run: |
- if [[ "$OSTYPE" == "darwin"* ]]; then
- sed -i '' 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' screenpipe-app-tauri/src-tauri/Cargo.toml
- else
- sed -i 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' screenpipe-app-tauri/src-tauri/Cargo.toml
- fi
+ if ($IsWindows) {
+ (Get-Content screenpipe-app-tauri/src-tauri/Cargo.toml) -replace '^version = ".*"', 'version = "${{ github.event.inputs.version }}"' | Set-Content screenpipe-app-tauri/src-tauri/Cargo.toml
+ } else {
+ if [[ "$OSTYPE" == "darwin"* ]]; then
+ sed -i '' 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' screenpipe-app-tauri/src-tauri/Cargo.toml
+ else
+ sed -i 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' screenpipe-app-tauri/src-tauri/Cargo.toml
+ fi
+ }
- name: create draft release
uses: crabnebula-dev/[email protected]
@@ -130,12 +135,17 @@ jobs:
- name: Update version in Cargo.toml
if: github.event.inputs.commit_hash && github.event.inputs.version
+ shell: ${{ runner.os == 'Windows' && 'pwsh' || 'bash' }}
run: |
- if [[ "$OSTYPE" == "darwin"* ]]; then
- sed -i '' 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' screenpipe-app-tauri/src-tauri/Cargo.toml
- else
- sed -i 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' screenpipe-app-tauri/src-tauri/Cargo.toml
- fi
+ if ($IsWindows) {
+ (Get-Content screenpipe-app-tauri/src-tauri/Cargo.toml) -replace '^version = ".*"', 'version = "${{ github.event.inputs.version }}"' | Set-Content screenpipe-app-tauri/src-tauri/Cargo.toml
+ } else {
+ if [[ "$OSTYPE" == "darwin"* ]]; then
+ sed -i '' 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' screenpipe-app-tauri/src-tauri/Cargo.toml
+ else
+ sed -i 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' screenpipe-app-tauri/src-tauri/Cargo.toml
+ fi
+ }
- name: Setup Bun
uses: oven-sh/setup-bun@v2
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index 7e5cdbe79..541162ae8 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "0.14.15"
+version = "0.14.16"
description = ""
authors = ["you"]
license = ""
@@ -77,6 +77,8 @@ axum = "0.6.0" # or your current version
dirs = "5.0.1"
+once_cell = "1.19.0"
+
[target."cfg(not(any(target_os = \"android\", target_os = \"ios\")))".dependencies]
tauri-plugin-cli = "2.0.0"
diff --git a/screenpipe-app-tauri/src-tauri/build.rs b/screenpipe-app-tauri/src-tauri/build.rs
index dc98403fd..6fd6c5d66 100644
--- a/screenpipe-app-tauri/src-tauri/build.rs
+++ b/screenpipe-app-tauri/src-tauri/build.rs
@@ -1,5 +1,5 @@
-#[cfg(target_os = "macos")]
-use std::{env, fs, process::Command};
+// #[cfg(target_os = "macos")]
+// use std::{env, fs, process::Command};
fn main() {
// #[cfg(target_arch = "x86_64")]