Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhou121 committed Jun 4, 2024
1 parent d863307 commit acf5036
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/release-test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ jobs:
- rust-arch: aarch64
darwin-arch: arm64
runs-on: macos-14

- rust-arch: x86_64
darwin-arch: x86_64
runs-on: macos-13
env:
RELEASE_TAG_NAME: ${{ needs.tagname.outputs.tag_name }}

Expand All @@ -51,12 +47,8 @@ jobs:
- name: Fetch dependencies
run: cargo fetch --locked

- name: arm64
if: matrix.rust-arch == 'aarch64'
run: echo 'MACOSX_DEPLOYMENT_TARGET=11.0' >> $GITHUB_ENV

- name: Make DMG
run: make dmg
run: make dmg-universal

- name: Rename
run: |
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ CODESIGN_IDENTITY = FAC8FBEA99169DC1980731029648F110628D6A32
ASSETS_DIR = extra
RELEASE_DIR = target/release-lto

MACOSX_DEPLOYMENT_TARGET ?= 10.11

APP_NAME = Lapce.app
APP_TEMPLATE = $(ASSETS_DIR)/macos/$(APP_NAME)
APP_DIR = $(RELEASE_DIR)/macos
Expand Down Expand Up @@ -36,7 +34,7 @@ $(TARGET)-native:
cargo build --profile release-lto
@lipo target/release-lto/$(TARGET) -create -output $(APP_BINARY)
$(TARGET)-universal:
MACOSX_DEPLOYMENT_TARGET="10.11" cargo build --profile release-lto --target=x86_64-apple-darwin
MACOSX_DEPLOYMENT_TARGET="11.0" cargo build --profile release-lto --target=x86_64-apple-darwin
MACOSX_DEPLOYMENT_TARGET="11.0" cargo build --profile release-lto --target=aarch64-apple-darwin
@lipo target/{x86_64,aarch64}-apple-darwin/release-lto/$(TARGET) -create -output $(APP_BINARY)
/usr/bin/codesign -vvv --deep --entitlements $(ASSETS_DIR)/entitlements.plist --strict --options=runtime --force -s $(CODESIGN_IDENTITY) $(APP_BINARY)
Expand Down

0 comments on commit acf5036

Please sign in to comment.