Skip to content

Commit

Permalink
Try to make OSX app easier to run
Browse files Browse the repository at this point in the history
  • Loading branch information
rnd-ash committed Oct 17, 2023
1 parent 02f1e1a commit 26bf128
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,18 @@ jobs:
- run: |
rustup set auto-self-update disable
rustup toolchain install stable --profile minimal
- name: Install cargo-bundle
run: cargo install cargo-bundle
- uses: Swatinem/rust-cache@v2
- name: Build executable
working-directory: ./config_app
run: cargo build --verbose --release
run: cargo bundle --release
- name: LS
run: ls -aslh target/release/bundle/
- uses: actions/upload-artifact@v3
with:
name: config-app-${{env.BRANCH_NAME}}-osx
path: target/release/config_app
path: target/release/bundle/*.app

Create-Upload:
needs: [Windows-App, Linux-App, OSX-app]
Expand Down Expand Up @@ -114,7 +118,7 @@ jobs:
files: |
config-app-${{env.BRANCH_NAME}}-exe/*.exe
config-app-${{env.BRANCH_NAME}}-appimage/*.AppImage
config-app-${{env.BRANCH_NAME}}-osx/config_app
config-app-${{env.BRANCH_NAME}}-osx/config_app.app


8 changes: 8 additions & 0 deletions config_app/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name = "config_app"
version = "0.1.8"
edition = "2021"
resolver = "2"
description = "Ultimate-NAG52 config app"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[[bin]]
Expand Down Expand Up @@ -36,3 +37,10 @@ curl = "0.4.43"

[patch.crates-io]
winit = { git = "https://github.com/PolyMeilex/winit ", branch = "master" }

# For OSX
[package.metadata.bundle]
name = "Ultimate-NAG52-Config-App"
identifier = "com.rndash.un52configapp"
short_description = "Ultimate-NAG52 configuration suite"
osx_url_schemes = ["com.rndash.un52configapp"]

0 comments on commit 26bf128

Please sign in to comment.