Skip to content

Commit

Permalink
fix(chat): fix release bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
smallbraingames committed Oct 7, 2024
1 parent a863c1c commit bd63f18
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
24 changes: 11 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: build & release chat
name: Build & release chat

on:
push:
Expand All @@ -21,22 +21,20 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: setup rust
- name: Setup rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable

- name: install deps
- name: Install deps
run: |
brew install create-dmg
cargo install cargo-bundle
- name: bundle app
run: |
cd chat
cargo bundle --release
- name: Bundle app
run: cargo bundle --release

- name: create dmg
- name: Create dmg
run: |
create-dmg \
--volname "chat" \
Expand All @@ -47,9 +45,9 @@ jobs:
--hide-extension "chat.app" \
--app-drop-link 600 185 \
"chat.dmg" \
"chat/target/release/bundle/osx/chat.app" # Adjust this path if necessary
"target/release/bundle/osx/chat.app"
- name: upload dmg
- name: Upload dmg
uses: actions/upload-artifact@v4
with:
name: chat-dmg
Expand All @@ -62,18 +60,18 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: download dmg
- name: Download dmg
uses: actions/download-artifact@v4
with:
name: chat-dmg

- name: generate release notes
- name: Generate release notes
run: |
echo "Release notes for version ${{ github.event.inputs.version }}" > RELEASE_NOTES.md
echo "Changelog:" >> RELEASE_NOTES.md
git log $(git describe --tags --abbrev=0)..HEAD --pretty=format:"%s" >> RELEASE_NOTES.md
- name: create gh release
- name: Create gh release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion chat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ tracing-subscriber = "0.3.18"
unicode-segmentation = "1.12.0"

[package.metadata.bundle]
name = "Chat"
name = "chat"
identifier = "com.yourdomain.chat"
icon = ["assets/icon/32x32.png", "assets/icon/128x128.png", "assets/icon/[email protected]"]
version = "0.1.0"
Expand Down

0 comments on commit bd63f18

Please sign in to comment.