Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
Coloryr committed May 6, 2024
1 parent 20d9aaf commit 8429fbb
Show file tree
Hide file tree
Showing 4 changed files with 116 additions and 116 deletions.
224 changes: 112 additions & 112 deletions .github/workflows/dotnet-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
chmod a+x ./build/build-linux.sh
./build/build-linux.sh
- name: 构建 deb
shell: bash
working-directory: ./
run: |
chmod a+x ./build/build-ubuntu.sh
./build/build-ubuntu.sh
# - name: 构建 deb
# shell: bash
# working-directory: ./
# run: |
# chmod a+x ./build/build-ubuntu.sh
# ./build/build-ubuntu.sh

- name: 构建 pkg
run: |
Expand Down Expand Up @@ -101,111 +101,111 @@ jobs:
name: "colormc-linux-x64-appimage"
path: build_out/colormc-${{ env.MAINVERSION }}${{ env.VERSION }}-linux-x86_64.AppImage

build-macos:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: 设置.NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.100

- name: 更新源码
shell: bash
working-directory: ./
run: |
chmod a+x ./build/update.sh
./build/update.sh
- name: 构建
shell: bash
working-directory: ./
run: |
chmod a+x ./build/build-macos.sh
./build/build-macos.sh
- name: 上传 ZIP
uses: actions/upload-artifact@v4
with:
name: "colormc-macos-x64"
path: build_out/

build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3

- name: Read version number
id: version
run: |
$version = Get-Content ./build/version
echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
- name: 设置.NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.100

- name: 更新源码
shell: cmd
working-directory: ./
run: ./build/update.cmd

- name: 构建 源码
shell: cmd
working-directory: ./
run: ./build/build-windows.cmd
# build-macos:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: 设置.NET Core
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: 8.0.100

# - name: 更新源码
# shell: bash
# working-directory: ./
# run: |
# chmod a+x ./build/update.sh
# ./build/update.sh

# - name: 构建
# shell: bash
# working-directory: ./
# run: |
# chmod a+x ./build/build-macos.sh
# ./build/build-macos.sh

# - name: 上传 ZIP
# uses: actions/upload-artifact@v4
# with:
# name: "colormc-macos-x64"
# path: build_out/

# build-windows:
# runs-on: windows-latest
# steps:
# - uses: actions/checkout@v3

# - name: Read version number
# id: version
# run: |
# $version = Get-Content ./build/version
# echo "VERSION=$version" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append

# - name: 设置.NET Core
# uses: actions/setup-dotnet@v4
# with:
# dotnet-version: 8.0.100

# - name: 更新源码
# shell: cmd
# working-directory: ./
# run: ./build/update.cmd

# - name: 构建 源码
# shell: cmd
# working-directory: ./
# run: ./build/build-windows.cmd

- name: Install WiX Toolset
run: |
choco install wixtoolset
dotnet tool install --global wix --version 4.0.4
wix extension add -g WixToolset.UI.wixext/4.0.4
- name: Build MSI with MSBuild
working-directory: ./
run: |
cd .\src\ColorMC.Setup.Wix
dotnet build
- name: 上传
uses: actions/upload-artifact@v4
with:
name: "colormc-windows-x64-msi"
path: src/ColorMC.Setup.Wix/colormc-x64.msi

- name: 上传
uses: actions/upload-artifact@v4
with:
name: "colormc-windows-x64-aot-msi"
path: src/ColorMC.Setup.Wix/colormc-x64-aot.msi

- name: 上传
uses: actions/upload-artifact@v4
with:
name: "colormc-windows-x64"
path: src/build_out/win-x64-dotnet/colormc/**
# - name: Install WiX Toolset
# run: |
# choco install wixtoolset
# dotnet tool install --global wix --version 4.0.4
# wix extension add -g WixToolset.UI.wixext/4.0.4

# - name: Build MSI with MSBuild
# working-directory: ./
# run: |
# cd .\src\ColorMC.Setup.Wix
# dotnet build

# - name: 上传
# uses: actions/upload-artifact@v4
# with:
# name: "colormc-windows-x64-msi"
# path: src/ColorMC.Setup.Wix/colormc-x64.msi

# - name: 上传
# uses: actions/upload-artifact@v4
# with:
# name: "colormc-windows-x64-aot-msi"
# path: src/ColorMC.Setup.Wix/colormc-x64-aot.msi

# - name: 上传
# uses: actions/upload-artifact@v4
# with:
# name: "colormc-windows-x64"
# path: src/build_out/win-x64-dotnet/colormc/**

- name: 上传
uses: actions/upload-artifact@v4
with:
name: "colormc-windows-x86"
path: src/build_out/win-x86-dotnet/colormc/**

- name: 上传
uses: actions/upload-artifact@v4
with:
name: "colormc-windows-arm64"
path: src/build_out/win-arm64-dotnet/colormc/**

- name: 上传
uses: actions/upload-artifact@v4
with:
name: "colormc-windows-x64-aot"
path: src/build_out/win-x64-aot/colormc/**

- name: 上传
uses: actions/upload-artifact@v4
with:
name: "colormc-windows-arm64-aot"
path: src/build_out/win-arm64-aot/colormc/**
# - name: 上传
# uses: actions/upload-artifact@v4
# with:
# name: "colormc-windows-x86"
# path: src/build_out/win-x86-dotnet/colormc/**

# - name: 上传
# uses: actions/upload-artifact@v4
# with:
# name: "colormc-windows-arm64"
# path: src/build_out/win-arm64-dotnet/colormc/**

# - name: 上传
# uses: actions/upload-artifact@v4
# with:
# name: "colormc-windows-x64-aot"
# path: src/build_out/win-x64-aot/colormc/**

# - name: 上传
# uses: actions/upload-artifact@v4
# with:
# name: "colormc-windows-arm64-aot"
# path: src/build_out/win-arm64-aot/colormc/**
4 changes: 2 additions & 2 deletions build/build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ build_linux_aot()
}

build_linux linux-x64
build_linux linux-arm64
# build_linux linux-arm64
build_linux_aot linux-x64
build_linux_aot linux-arm64
# build_linux_aot linux-arm64
2 changes: 1 addition & 1 deletion build/info/arch/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ license=("Apache 2.0")
install=".INSTALL"
sha512sums=("SKIP" "SKIP" "SKIP" "SKIP" "SKIP" "SKIP"
"SKIP" "SKIP" "SKIP" "SKIP" "SKIP" "SKIP")
options=("!strip" "libtool" "staticlibs")
options=("!strip" "!libtool" "!staticlibs")
source=("ColorMC.Gui.pdb" "ColorMC.Core.pdb" "Live2DCSharpSDK.App.pdb"
"Live2DCSharpSDK.Framework.pdb" "ColorMC.Launcher.pdb" "X11.pdb"
"libHarfBuzzSharp.so" "libSDL2-2.0.so" "libSkiaSharp.so" "ColorMC.Launcher"
Expand Down
2 changes: 1 addition & 1 deletion build/info/arch/PKGBUILD-AOT
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ arch=("%arch%")
license=("Apache 2.0")
install=".INSTALL"
sha512sums=("SKIP" "SKIP" "SKIP" "SKIP" "SKIP" "SKIP")
options=("!strip" "libtool" "staticlibs")
options=("!strip" "!libtool" "!staticlibs")
source=("libHarfBuzzSharp.so" "libSDL2-2.0.so" "libSkiaSharp.so"
"ColorMC.Launcher" "ColorMC.desktop" "colormc.png")
install=colormc.install
Expand Down

0 comments on commit 8429fbb

Please sign in to comment.