Skip to content
Draft

GUI #48

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
with:
toolchain: stable
target: x86_64-apple-darwin

- run: cargo install cargo-bundle

- name: Build x86_64
uses: actions-rs/cargo@v1
Expand All @@ -59,17 +61,24 @@ jobs:
with:
command: build
args: --release --target aarch64-apple-darwin --all-features

- run: ls -l target

- name: Bundle .app
run: cargo bundle --all-features --format osx --release

- name: Create universal binary
run: lipo -create -output merlon target/x86_64-apple-darwin/release/merlon target/aarch64-apple-darwin/release/merlon
run: lipo -create -output target/release/bundle/osx/Merlon.app/Contents/MacOS/merlon target/x86_64-apple-darwin/release/merlon target/aarch64-apple-darwin/release/merlon

- name: Install dmgbuild
run: pip3 install dmgbuild

- name: Build DMG
run: cd assets/dmg && dmgbuild -s dmgbuild.json "Merlon" Merlon.dmg

- uses: actions/upload-artifact@v3
with:
name: merlon-macos
path: merlon
path: assets/dmg/Merlon.dmg

linux:
name: Build for Linux
runs-on: ubuntu-latest
Expand Down Expand Up @@ -105,7 +114,7 @@ jobs:
run: |
mkdir -p release
mv merlon-linux-x86_64/merlon release/merlon-linux-x86_64
mv merlon-macos/merlon release/merlon-macos
mv merlon-macos/Merlon.dmg release/Merlon.dmg

- name: Get version from tag
id: get_version
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
!/examples/*.merlon
/.venv
*.z64
*.dmg
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"rust-analyzer.cargo.features": [
"gui"
]
}
Loading