Skip to content

Commit 5d5515f

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 30020e0 + 82ea5b4 commit 5d5515f

2 files changed

Lines changed: 4 additions & 76 deletions

File tree

.github/workflows/dotnet-desktop.yml

Lines changed: 3 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -29,72 +29,6 @@ jobs:
2929
run: |
3030
echo "The current time is: ${{ steps.date.outputs.time }}"
3131
32-
linux:
33-
runs-on: ubuntu-20.04
34-
needs: time
35-
steps:
36-
- name: Checkout
37-
uses: actions/checkout@v3
38-
with:
39-
fetch-depth: 0
40-
# - name: Time
41-
# id: date
42-
# run: |
43-
# echo "${{ needs.time.outputs.v }}" > ./YMCL/Public/Texts/DateTime.txt
44-
# echo "Version is ${{ needs.time.outputs.v }}"
45-
- name: Dependency
46-
run: |
47-
dotnet tool install -g KuiperZone.PupNet
48-
sudo apt-get update
49-
sudo apt-get install fuse
50-
- name: Build-AppImage
51-
run: |
52-
cd ./Round.NET.AvaloniaApp.EncodeCalculator.Desktop
53-
sudo su
54-
pupnet --runtime linux-x64 --kind appimage -o Round.NET.AvaloniaApp.EncodeCalculator.Desktop.linux.x64.AppImage -y --app-version ${{ needs.time.outputs.y }}.${{ needs.time.outputs.md }}.${{ needs.time.outputs.hm }}
55-
pupnet --runtime linux-arm --kind appimage -o Round.NET.AvaloniaApp.EncodeCalculator.Desktop.linux.arm.AppImage -y --app-version ${{ needs.time.outputs.y }}.${{ needs.time.outputs.md }}.${{ needs.time.outputs.hm }}
56-
pupnet --runtime linux-arm64 --kind appimage -o Round.NET.AvaloniaApp.EncodeCalculator.Desktop.linux.arm64.AppImage -y --app-version ${{ needs.time.outputs.y }}.${{ needs.time.outputs.md }}.${{ needs.time.outputs.hm }}
57-
- name: Build-MacOsApp
58-
run: |
59-
cd ./Round.NET.AvaloniaApp.EncodeCalculator.Desktop
60-
sudo su
61-
dotnet restore -r osx-x64
62-
dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-x64 -property:Configuration=Release -p:SelfContained=true
63-
dotnet restore -r osx-arm64
64-
dotnet msbuild -t:BundleApp -p:RuntimeIdentifier=osx-arm64 -property:Configuration=Release -p:SelfContained=true
65-
cd ./bin/Release/net8.0/
66-
cd ./osx-x64/publish/
67-
zip -9 -r ../../Round.NET.AvaloniaApp.EncodeCalculator.Desktop.osx.mac.x64.app.zip ./REC.app
68-
cd ../../
69-
cd ./osx-arm64/publish/
70-
zip -9 -r ../../Round.NET.AvaloniaApp.EncodeCalculator.Desktop.osx.mac.arm64.app.zip ./REC.app
71-
- name: Build-WinExe
72-
run: |
73-
cd ./Round.NET.AvaloniaApp.EncodeCalculator.Desktop
74-
sudo su
75-
dotnet publish -r win-x86 --self-contained true -p:PublishSingleFile=true
76-
dotnet publish -r win-x64 --self-contained true -p:PublishSingleFile=true
77-
dotnet publish -r win-arm64 --self-contained true -p:PublishSingleFile=true
78-
mv ./bin/Release/net8.0/win-x86/publish/Round.NET.AvaloniaApp.EncodeCalculator.Desktop.exe ./bin/Release/net8.0/win-x86/publish/Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.x86.exe
79-
mv ./bin/Release/net8.0/win-x64/publish/Round.NET.AvaloniaApp.EncodeCalculator.Desktop.exe ./bin/Release/net8.0/win-x64/publish/Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.x64.exe
80-
mv ./bin/Release/net8.0/win-arm64/publish/Round.NET.AvaloniaApp.EncodeCalculator.Desktop.exe ./bin/Release/net8.0/win-arm64/publish/Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.arm64.exe
81-
cd ./bin/Release/net8.0/
82-
cd ./win-x86/publish/
83-
zip -9 -r "../../Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.x86.exe.zip" "./Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.x86.exe"
84-
cd ../../
85-
cd ./win-x64/publish/
86-
zip -9 -r "../../Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.x64.exe.zip" "./Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.x64.exe"
87-
cd ../../
88-
cd ./win-arm64/publish/
89-
zip -9 -r "../../Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.arm64.exe.zip" "./Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win7.arm64.exe"
90-
- name: UploadArtifacts
91-
uses: actions/upload-artifact@v3
92-
with:
93-
name: linux-artifacts
94-
path: |
95-
./Round.NET.AvaloniaApp.EncodeCalculator.Desktop/Deploy/OUT/*
96-
./Round.NET.AvaloniaApp.EncodeCalculator.Desktop/bin/Release/net8.0/*.zip
97-
9832
win:
9933
runs-on: windows-latest
10034
needs: time
@@ -124,28 +58,23 @@ jobs:
12458
pupnet -r win-x86 -k setup -y -o Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win.x86.installer.exe --app-version ${{ needs.time.outputs.y }}.${{ needs.time.outputs.md }}.${{ needs.time.outputs.hm }}
12559
pupnet -r win-arm64 -k setup -y -o Round.NET.AvaloniaApp.EncodeCalculator.Desktop.win.arm64.installer.exe --app-version ${{ needs.time.outputs.y }}.${{ needs.time.outputs.md }}.${{ needs.time.outputs.hm }}
12660
- name: UploadArtifacts
127-
uses: actions/upload-artifact@v3
61+
uses: actions/upload-artifact@v4
12862
with:
12963
name: win-artifacts
13064
path: |
13165
./Round.NET.AvaloniaApp.EncodeCalculator.Desktop/Deploy/OUT/*
13266
13367
publish:
134-
needs: [linux, win, time]
68+
needs: [win, time]
13569
runs-on: ubuntu-latest
13670
steps:
13771
- name: Time
13872
id: gdate
13973
run: |
14074
echo "date=$(date +'%Y-%m-%d.%H-%M-%S')" >> $GITHUB_OUTPUT
14175
echo "title=$(date +'%Y.%m.%d.%H.%M')" >> $GITHUB_OUTPUT
142-
- name: Download-LinuxArtifacts
143-
uses: actions/download-artifact@v3
144-
with:
145-
name: linux-artifacts
146-
path: ./Round.NET.AvaloniaApp.EncodeCalculator/Release/
14776
- name: Download-WindowsArtifacts
148-
uses: actions/download-artifact@v3
77+
uses: actions/download-artifact@v4
14978
with:
15079
name: win-artifacts
15180
path: ./Round.NET.AvaloniaApp.EncodeCalculator/Release/
@@ -161,5 +90,4 @@ jobs:
16190
prerelease: false
16291
files: |
16392
Round.NET.AvaloniaApp.EncodeCalculator/Release/*.exe
164-
Round.NET.AvaloniaApp.EncodeCalculator/Release/Deploy/OUT/*.AppImage
16593
Round.NET.AvaloniaApp.EncodeCalculator/Release/bin/Release/net8.0/*.zip

Round.NET.AvaloniaApp.EncodeCalculator.Desktop/Round.NET.AvaloniaApp.EncodeCalculator.Desktop.pupnet.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,4 +295,4 @@ SetupSuffixOutput =
295295
# Boolean (true or false) which sets whether to include the application version in the setup filename,
296296
# i.e. 'HelloWorld-1.2.3-x86_64.exe'. Default is false. Ignored if the output filename is specified
297297
# at command line.
298-
SetupVersionOutput = false
298+
SetupVersionOutput = false

0 commit comments

Comments
 (0)