Compare commits

...

2 Commits

Author SHA1 Message Date
Conrad Irwin
284ad179d7 Don't auto-start during install flow 2024-04-30 16:09:19 -06:00
Conrad Irwin
30b55279b5 Bundle linux preview releases too 2024-04-30 16:04:42 -06:00
2 changed files with 15 additions and 15 deletions

View File

@@ -323,14 +323,13 @@ jobs:
name: zed-${{ github.event.pull_request.head.sha || github.sha }}-x86_64-unknown-linux-gnu.tar.gz
path: zed-*.tar.gz
# TODO linux : make it stable enough to be uploaded as a release
# - uses: softprops/action-gh-release@v1
# name: Upload app bundle to release
# if: ${{ env.RELEASE_CHANNEL == 'preview' || env.RELEASE_CHANNEL == 'stable' }}
# with:
# draft: true
# prerelease: ${{ env.RELEASE_CHANNEL == 'preview' }}
# files: target/release/Zed.dmg
# body: ""
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload app bundle to release
uses: softprops/action-gh-release@v1
if: ${{ env.RELEASE_CHANNEL == 'preview' }}
with:
draft: true
prerelease: ${{ env.RELEASE_CHANNEL == 'preview' }}
files: target/release/zed-linux-x86_64.tar.gz
body: ""
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -60,14 +60,15 @@ linux() {
sed -i "s|Icon=zed|Icon=$HOME/.local/zed$suffix.app/share/icons/hicolor/512x512/apps/zed.png|g" ~/.local/share/applications/zed$suffix.desktop
sed -i "s|Exec=zed|Exec=$HOME/.local/zed$suffix.app/bin/zed|g" ~/.local/share/applications/zed.desktop
if ! which zed >/dev/null 2>&1; then
if which zed >/dev/null 2>&1; then
echo "zed successfully installed. You can run it with 'zed'"
else
echo "To run zed from your terminal, you must add ~/.local/bin to your PATH"
echo "Run:"
echo " echo 'export PATH=\$HOME/.local/bin:\$PATH' >> ~/.bashrc"
echo " source ~/.bashrc"
echo "Otherwise run '~/.local/bin/zed'"
fi
~/.local/bin/zed
}
macos() {
@@ -82,7 +83,7 @@ macos() {
fi
ditto -v "$temp/mount/$app" "/Applications/$app"
hdiutil detach -quiet "$temp/mount"
open "/Applications/$app"
echo "Zed is installed. You can run it with 'open /Applications/$app'"
}
main "$@"