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 fucking build

Louis Beaumont360f9c50803b
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.yml
index 7b9d80286..0ab576565 100644
--- a/.github/workflows/release-app.yml
+++ b/.github/workflows/release-app.yml
@@ -87,17 +87,12 @@ 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 ($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
- }
+ 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]
@@ -134,18 +129,17 @@ jobs:
ref: ${{ github.event.inputs.commit_hash || github.ref }}
- name: Update version in Cargo.toml
- if: github.event.inputs.commit_hash && github.event.inputs.version
- shell: ${{ runner.os == 'Windows' && 'pwsh' || 'bash' }}
+ if: github.event.inputs.commit_hash && github.event.inputs.version && matrix.platform != 'macos-latest'
+ shell: pwsh
+ run: |
+ $content = Get-Content screenpipe-app-tauri/src-tauri/Cargo.toml
+ $content = $content -replace '^version = ".*"', ('version = "' + '${{ github.event.inputs.version }}' + '"')
+ $content | Set-Content screenpipe-app-tauri/src-tauri/Cargo.toml -Force
+
+ - name: Update version in Cargo.toml
+ if: github.event.inputs.commit_hash && github.event.inputs.version && matrix.platform == 'macos-latest'
run: |
- 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
- }
+ sed -i '' 's/^version = ".*"/version = "${{ github.event.inputs.version }}"/' screenpipe-app-tauri/src-tauri/Cargo.toml
- name: Setup Bun
uses: oven-sh/setup-bun@v2