Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: 宁静致远 <[email protected]>
  • Loading branch information
DuckDuckStudio and fjwxzde authored Jan 22, 2025
1 parent 22e1f56 commit 8a8b8fc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ jobs:
run: |
python "自动化脚本/修改架构.py" "${{ matrix.arch }}"
- name: 发布 - Windows - Any CPU
- name: 发布 - Windows - x64/x86/arm64/amd64
if: ${{ runner.os == 'Windows' && matrix.arch != 'arm' }}
run: |
dotnet publish ghv/ghv.csproj --configuration Release --output ./output -r win-${{ matrix.arch }}
dotnet publish ghv/ghv.csproj --configuration Release --output ./output_SingleFile -r win-${{ matrix.arch }} /p:PublishSingleFile=true /p:PublishTrimmed=true
- name: 发布 - linux - x64/arm/arm64
- name: 发布 - linux - x64/arm/arm64/amd64
if: ${{ runner.os == 'Linux' && matrix.arch != 'x86' }}
run: |
dotnet publish ghv/ghv.csproj --configuration Release --output ./output -r linux-${{ matrix.arch }}
Expand All @@ -68,7 +68,6 @@ jobs:
# 使用7z压缩为zip格式
7z a -tzip Release/GitHubView-${{ github.event.inputs.version }}-${{ matrix.os }}-${{ matrix.arch }}.zip output/*
7z a -tzip Release/GitHubView-${{ github.event.inputs.version }}-${{ matrix.os }}-${{ matrix.arch }}-SingleFile.zip output_SingleFile/*
# 创建安装包
curl -o "C:\Program Files (x86)\Inno Setup 6\Languages\ChineseSimplified.isl" "https://raw.githubusercontent.com/jrsoftware/issrc/main/Files/Languages/Unofficial/ChineseSimplified.isl"
Expand All @@ -91,7 +90,6 @@ jobs:
# 使用tar压缩
tar -czvf Release/GitHubView-${{ github.event.inputs.version }}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz -C output .
tar -czvf Release/GitHubView-${{ github.event.inputs.version }}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz -C output_SingleFile .
# =======================================================
echo "构建DEB包..."
Expand Down
6 changes: 2 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,13 @@ jobs:
run: |
python "自动化脚本/修改架构.py" "${{ matrix.arch }}"
- name: 发布 - Windows - x64/x86/arm64
- name: 发布 - Windows - x64/x86/arm64/amd64
if: ${{ runner.os == 'Windows' && matrix.arch != 'arm' }}
run: |
dotnet publish ghv/ghv.csproj --configuration Release --output ./output -r win-${{ matrix.arch }}
dotnet publish ghv/ghv.csproj --configuration Release --output ./output_SingleFile -r win-${{ matrix.arch }} /p:PublishSingleFile=true /p:PublishTrimmed=true
- name: 发布 - linux - x64/arm/arm64
- name: 发布 - linux - x64/arm/arm64/amd64
if: ${{ runner.os == 'Linux' && matrix.arch != 'x86' }}
run: |
dotnet publish ghv/ghv.csproj --configuration Release --output ./output -r linux-${{ matrix.arch }}
Expand All @@ -75,7 +75,6 @@ jobs:
# 使用7z压缩为zip格式
7z a -tzip Release/GitHubView-${{ env.NIGHTLY_VERSION }}-${{ matrix.os }}-${{ matrix.arch }}.zip output/*
7z a -tzip Release/GitHubView-${{ env.NIGHTLY_VERSION }}-${{ matrix.os }}-${{ matrix.arch }}-SingleFile.zip output_SingleFile/*
# 创建安装包
curl -o "C:\Program Files (x86)\Inno Setup 6\Languages\ChineseSimplified.isl" "https://raw.githubusercontent.com/jrsoftware/issrc/main/Files/Languages/Unofficial/ChineseSimplified.isl"
Expand All @@ -98,7 +97,6 @@ jobs:
# 使用tar压缩
tar -czvf Release/GitHubView-${{ env.NIGHTLY_VERSION }}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz -C output .
tar -czvf Release/GitHubView-${{ env.NIGHTLY_VERSION }}-${{ matrix.os }}-${{ matrix.arch }}.tar.gz -C output_SingleFile .
# =======================================================
echo "构建DEB包..."
Expand Down

0 comments on commit 8a8b8fc

Please sign in to comment.