Skip to content

Commit e958ba1

Browse files
committed
ok
1 parent 447592b commit e958ba1

16 files changed

Lines changed: 204 additions & 3 deletions

.github/workflows/build.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
branches: [ main, master, dev ]
6+
tags: [ 'v*' ]
7+
pull_request:
8+
branches: [ main, master ]
9+
workflow_dispatch:
10+
11+
env:
12+
CARGO_TERM_COLOR: always
13+
14+
jobs:
15+
build-macos:
16+
runs-on: macos-latest
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Install Rust
21+
uses: dtolnay/rust-action@stable
22+
with:
23+
toolchain: stable
24+
25+
- name: Install cargo-bundle
26+
run: cargo install cargo-bundle
27+
28+
- name: Build app bundle
29+
run: |
30+
cd crates/editor
31+
cargo bundle --release
32+
33+
- name: Create DMG
34+
run: |
35+
mkdir -p build
36+
37+
BUILD_DIR="build/AsterIDE"
38+
rm -rf "$BUILD_DIR"
39+
mkdir -p "$BUILD_DIR"
40+
41+
cp -r "target/release/bundle/osx/AsterIDE.app" "$BUILD_DIR/"
42+
43+
ln -s /Applications "$BUILD_DIR/Applications"
44+
45+
hdiutil create -volname "AsterIDE" -srcfolder "$BUILD_DIR" -ov -format UDZO "build/AsterIDE.dmg"
46+
47+
- name: Upload artifact
48+
uses: actions/upload-artifact@v4
49+
with:
50+
name: AsterIDE-macos
51+
path: build/AsterIDE.dmg
52+
53+
release:
54+
needs: [build-macos]
55+
runs-on: macos-latest
56+
if: startsWith(github.ref, 'refs/tags/')
57+
steps:
58+
- uses: actions/checkout@v4
59+
60+
- name: Download artifact
61+
uses: actions/download-artifact@v4
62+
with:
63+
name: AsterIDE-macos
64+
path: artifacts/
65+
66+
- name: Create Release
67+
uses: softprops/action-gh-release@v2
68+
with:
69+
files: artifacts/AsterIDE.dmg
70+
draft: false
71+
prerelease: ${{ contains(github.ref_name, 'alpha') || contains(github.ref_name, 'beta') || contains(github.ref_name, 'rc') }}
72+
generate_release_notes: true
73+
env:
74+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
539 KB
Binary file not shown.
509 KB
Binary file not shown.
179 KB
Binary file not shown.
438 KB
Binary file not shown.
538 KB
Binary file not shown.
Binary file not shown.

build/AsterIDE.dmg

10.9 MB
Binary file not shown.

build/AsterIDE/Applications

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/Applications
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>English</string>
7+
<key>CFBundleDisplayName</key>
8+
<string>AsterIDE</string>
9+
<key>CFBundleExecutable</key>
10+
<string>asteride</string>
11+
<key>CFBundleIconFile</key>
12+
<string>asteride-macOS-TintedLight-1024x1024@1x.icns</string>
13+
<key>CFBundleIdentifier</key>
14+
<string>dev.playfairs.asteride</string>
15+
<key>CFBundleInfoDictionaryVersion</key>
16+
<string>6.0</string>
17+
<key>CFBundleName</key>
18+
<string>AsterIDE</string>
19+
<key>CFBundlePackageType</key>
20+
<string>APPL</string>
21+
<key>CFBundleShortVersionString</key>
22+
<string>0.1.0</string>
23+
<key>CFBundleVersion</key>
24+
<string>20260422.160056</string>
25+
<key>CSResourcesFileMapped</key>
26+
<true/>
27+
<key>LSApplicationCategoryType</key>
28+
<string>public.app-category.developer-tools</string>
29+
<key>LSRequiresCarbon</key>
30+
<true/>
31+
<key>NSHighResolutionCapable</key>
32+
<true/>
33+
<key>NSHumanReadableCopyright</key>
34+
<string>Copyright (c) 2026</string>
35+
</dict>
36+
</plist>

0 commit comments

Comments
 (0)