Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
NotroDev authored Dec 18, 2023
1 parent e5d429e commit 8dc7b85
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

# - name: Build and publish for Windows
# run: |
# cd SkEditorAvalonia
# cd SkEditor
# dotnet publish -c Release -r win-x64 --no-self-contained /p:PublishSingleFile=true
# mkdir -p SkEditor
# cp bin/Release/net8.0/win-x64/publish/* SkEditor/
Expand All @@ -30,7 +30,7 @@ jobs:
# uses: actions/upload-artifact@v2
# with:
# name: SkEditorWindows
# path: SkEditorAvalonia/SkEditor
# path: SkEditor/SkEditor

build-linux:
runs-on: ubuntu-latest
Expand All @@ -47,11 +47,11 @@ jobs:
- name: Remove old folder
uses: JesseTG/[email protected]
with:
path: /SkEditorAvalonia/SkEditor
path: /SkEditor/SkEditor

- name: Build and publish for Linux
run: |
cd SkEditorAvalonia
cd SkEditor
dotnet publish -c Release -r linux-x64 --self-contained
mkdir -p SkEditor
cp -r bin/Release/net8.0/linux-x64/publish/* SkEditor/
Expand All @@ -60,7 +60,7 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: SkEditorLinux
path: SkEditorAvalonia/SkEditor
path: SkEditor/SkEditor

build-macos:
runs-on: macos-latest
Expand All @@ -76,17 +76,17 @@ jobs:

- name: Build and publish for macOS
run: |
cd SkEditorAvalonia
cd SkEditor
dotnet restore
dotnet publish -c Release -r osx-arm64 --self-contained /p:PublishSingleFile=true
- name: Create .app structure
run: |
mkdir -p "SkEditor.app/Contents/MacOS"
mkdir -p "SkEditor.app/Contents/Resources"
cp SkEditorAvalonia/bin/Release/net8.0/osx-arm64/publish/* "SkEditor.app/Contents/MacOS/"
cp SkEditorAvalonia/Info.plist "SkEditor.app/Contents/"
cp SkEditorAvalonia/SkEditor.icns "SkEditor.app/Contents/Resources/"
cp SkEditor/bin/Release/net8.0/osx-arm64/publish/* "SkEditor.app/Contents/MacOS/"
cp SkEditor/Info.plist "SkEditor.app/Contents/"
cp SkEditor/SkEditor.icns "SkEditor.app/Contents/Resources/"
- name: Set execute permissions
run: |
Expand Down

0 comments on commit 8dc7b85

Please sign in to comment.