Skip to content

Commit

Permalink
fix: disable auto-updater by adding ZED_UPDATE_EXPLANATION
Browse files Browse the repository at this point in the history
Also sets release channel for stable
  • Loading branch information
xarunoba committed Nov 7, 2024
1 parent 6f8c590 commit c894512
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ jobs:
shell: powershell
run: |
$env:RUSTFLAGS="--cfg ${{ matrix.build_type }}"
$env:ZED_UPDATE_EXPLANATION="Auto-updater is disabled for this build (xarunoba/zed-windows)"
cargo build --release
- name: Archive ${{ matrix.build_type }} build
uses: actions/upload-artifact@v4
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/stable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,14 @@ jobs:
ref: ${{ needs.check.outputs.latest_release }}
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Set release channel to nightly
run: |
echo "stable" > crates/zed/RELEASE_CHANNEL
- name: Build to ${{ matrix.build_type }}
shell: powershell
run: |
$env:RUSTFLAGS="--cfg ${{ matrix.build_type }}"
$env:ZED_UPDATE_EXPLANATION="Auto-updater is disabled for this build (xarunoba/zed-windows)"
cargo build --release
- name: Archive ${{ matrix.build_type }} build
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit c894512

Please sign in to comment.