Merge branch 'beta' into New-New-Settings
This commit is contained in:
@@ -200,6 +200,10 @@ jobs:
|
|||||||
needs: prepare
|
needs: prepare
|
||||||
if: success()
|
if: success()
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
architecture: [AnyCPU, x86]
|
||||||
outputs:
|
outputs:
|
||||||
archive_name: ${{ steps.create_archive.outputs.archive_name }}
|
archive_name: ${{ steps.create_archive.outputs.archive_name }}
|
||||||
zip_size: ${{ steps.calculate_size.outputs.zip_size }}
|
zip_size: ${{ steps.calculate_size.outputs.zip_size }}
|
||||||
@@ -227,12 +231,12 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
DLASS_SENTRY_DSN: ${{ secrets.DLASS_SENTRY_DSN }}
|
DLASS_SENTRY_DSN: ${{ secrets.DLASS_SENTRY_DSN }}
|
||||||
run: |
|
run: |
|
||||||
msbuild /p:platform="AnyCPU" /p:configuration="Release" /p:GitFlow="Github Action" "Ink Canvas/InkCanvasForClass.csproj" /m /p:UseMultiToolTask=true /p:EnforceProcessCountAcrossBuilds=true /verbosity:minimal -maxcpucount /p:RunAnalyzers=false
|
msbuild /p:platform="${{ matrix.architecture }}" /p:configuration="Release" /p:GitFlow="Github Action" "Ink Canvas/InkCanvasForClass.csproj" /m /p:UseMultiToolTask=true /p:EnforceProcessCountAcrossBuilds=true /verbosity:minimal -maxcpucount /p:RunAnalyzers=false
|
||||||
|
|
||||||
- name: Check if exe file is generated
|
- name: Check if exe file is generated
|
||||||
id: check-exe
|
id: check-exe
|
||||||
run: |
|
run: |
|
||||||
$exePath = "Ink Canvas/bin/Release/net472/InkCanvasForClass.exe"
|
$exePath = "Ink Canvas\bin\Release\${{ matrix.architecture }}\net472\InkCanvasForClass.exe"
|
||||||
|
|
||||||
if (Test-Path $exePath) {
|
if (Test-Path $exePath) {
|
||||||
echo "build_success=true" >> $env:GITHUB_OUTPUT
|
echo "build_success=true" >> $env:GITHUB_OUTPUT
|
||||||
@@ -265,13 +269,22 @@ jobs:
|
|||||||
if: steps.check-exe.outputs.build_success == 'true'
|
if: steps.check-exe.outputs.build_success == 'true'
|
||||||
run: |
|
run: |
|
||||||
$version = "${{ needs.prepare.outputs.version }}"
|
$version = "${{ needs.prepare.outputs.version }}"
|
||||||
$archiveName = "InkCanvasForClass.CE.$version.zip"
|
$architecture = "${{ matrix.architecture }}"
|
||||||
|
|
||||||
|
# 根据架构生成文件名后缀
|
||||||
|
if ($architecture -eq "AnyCPU") {
|
||||||
|
$suffix = "-x64"
|
||||||
|
} else {
|
||||||
|
$suffix = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
$archiveName = "InkCanvasForClass.CE.$version$suffix.zip"
|
||||||
|
|
||||||
# 创建发布目录
|
# 创建发布目录
|
||||||
New-Item -ItemType Directory -Path "release" -Force
|
New-Item -ItemType Directory -Path "release" -Force
|
||||||
|
|
||||||
# 复制发布文件
|
# 复制发布文件(使用架构特定的路径)
|
||||||
Copy-Item "Ink Canvas/bin/Release/net472/*" "release/" -Recurse -Force
|
Copy-Item "Ink Canvas\bin\Release\$architecture\net472\*" "release/" -Recurse -Force
|
||||||
|
|
||||||
# 创建压缩包
|
# 创建压缩包
|
||||||
Compress-Archive -Path "release/*" -DestinationPath $archiveName -Force
|
Compress-Archive -Path "release/*" -DestinationPath $archiveName -Force
|
||||||
@@ -282,6 +295,7 @@ jobs:
|
|||||||
if: steps.check-exe.outputs.build_success == 'true'
|
if: steps.check-exe.outputs.build_success == 'true'
|
||||||
run: |
|
run: |
|
||||||
$version = "${{ needs.prepare.outputs.version }}"
|
$version = "${{ needs.prepare.outputs.version }}"
|
||||||
|
$architecture = "${{ matrix.architecture }}"
|
||||||
|
|
||||||
# 更新 ISS 文件中的版本信息
|
# 更新 ISS 文件中的版本信息
|
||||||
$issPath = "build/InkCanvasForClass CE.iss"
|
$issPath = "build/InkCanvasForClass CE.iss"
|
||||||
@@ -317,8 +331,17 @@ jobs:
|
|||||||
if: steps.check-exe.outputs.build_success == 'true'
|
if: steps.check-exe.outputs.build_success == 'true'
|
||||||
run: |
|
run: |
|
||||||
$version = "${{ needs.prepare.outputs.version }}"
|
$version = "${{ needs.prepare.outputs.version }}"
|
||||||
|
$architecture = "${{ matrix.architecture }}"
|
||||||
|
|
||||||
|
# 根据架构生成文件名后缀
|
||||||
|
if ($architecture -eq "AnyCPU") {
|
||||||
|
$suffix = "-x64"
|
||||||
|
} else {
|
||||||
|
$suffix = ""
|
||||||
|
}
|
||||||
|
|
||||||
$setupFile = "InkCanvasForClass CE Setup.exe"
|
$setupFile = "InkCanvasForClass CE Setup.exe"
|
||||||
$newSetupName = "InkCanvasForClass.CE.$version.Setup.exe"
|
$newSetupName = "InkCanvasForClass.CE.$version$suffix.Setup.exe"
|
||||||
|
|
||||||
if (Test-Path $setupFile) {
|
if (Test-Path $setupFile) {
|
||||||
Rename-Item -Path $setupFile -NewName $newSetupName
|
Rename-Item -Path $setupFile -NewName $newSetupName
|
||||||
@@ -331,7 +354,16 @@ jobs:
|
|||||||
if: steps.check-exe.outputs.build_success == 'true'
|
if: steps.check-exe.outputs.build_success == 'true'
|
||||||
run: |
|
run: |
|
||||||
$version = "${{ needs.prepare.outputs.version }}"
|
$version = "${{ needs.prepare.outputs.version }}"
|
||||||
$archiveName = "InkCanvasForClass.CE.$version.zip"
|
$architecture = "${{ matrix.architecture }}"
|
||||||
|
|
||||||
|
# 根据架构生成文件名后缀
|
||||||
|
if ($architecture -eq "AnyCPU") {
|
||||||
|
$suffix = "-x64"
|
||||||
|
} else {
|
||||||
|
$suffix = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
$archiveName = "InkCanvasForClass.CE.$version$suffix.zip"
|
||||||
|
|
||||||
# 获取文件大小(字节)
|
# 获取文件大小(字节)
|
||||||
$fileSize = (Get-Item $archiveName).Length
|
$fileSize = (Get-Item $archiveName).Length
|
||||||
@@ -343,7 +375,16 @@ jobs:
|
|||||||
if: steps.check-exe.outputs.build_success == 'true'
|
if: steps.check-exe.outputs.build_success == 'true'
|
||||||
run: |
|
run: |
|
||||||
$version = "${{ needs.prepare.outputs.version }}"
|
$version = "${{ needs.prepare.outputs.version }}"
|
||||||
$installerName = "InkCanvasForClass.CE.$version.Setup.exe"
|
$architecture = "${{ matrix.architecture }}"
|
||||||
|
|
||||||
|
# 根据架构生成文件名后缀
|
||||||
|
if ($architecture -eq "AnyCPU") {
|
||||||
|
$suffix = "-x64"
|
||||||
|
} else {
|
||||||
|
$suffix = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
$installerName = "InkCanvasForClass.CE.$version$suffix.Setup.exe"
|
||||||
|
|
||||||
if (Test-Path $installerName) {
|
if (Test-Path $installerName) {
|
||||||
# 获取文件大小(字节)
|
# 获取文件大小(字节)
|
||||||
@@ -354,14 +395,34 @@ jobs:
|
|||||||
Write-Error "Installer file not found: $installerName"
|
Write-Error "Installer file not found: $installerName"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- name: Upload Build Artifacts
|
||||||
|
if: steps.check-exe.outputs.build_success == 'true'
|
||||||
|
run: |
|
||||||
|
$version = "${{ needs.prepare.outputs.version }}"
|
||||||
|
$architecture = "${{ matrix.architecture }}"
|
||||||
|
|
||||||
|
# 根据架构生成文件名后缀
|
||||||
|
if ($architecture -eq "AnyCPU") {
|
||||||
|
$suffix = "-x64"
|
||||||
|
} else {
|
||||||
|
$suffix = ""
|
||||||
|
}
|
||||||
|
|
||||||
|
$zipFile = "InkCanvasForClass.CE.$version$suffix.zip"
|
||||||
|
$setupFile = "InkCanvasForClass.CE.$version$suffix.Setup.exe"
|
||||||
|
|
||||||
|
echo "zip_file=$zipFile" >> $env:GITHUB_OUTPUT
|
||||||
|
echo "setup_file=$setupFile" >> $env:GITHUB_OUTPUT
|
||||||
|
id: get_file_names
|
||||||
|
|
||||||
- name: Upload Build Artifacts
|
- name: Upload Build Artifacts
|
||||||
if: steps.check-exe.outputs.build_success == 'true'
|
if: steps.check-exe.outputs.build_success == 'true'
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: build-files-${{ needs.prepare.outputs.version }}
|
name: build-files-${{ needs.prepare.outputs.version }}-${{ matrix.architecture }}
|
||||||
path: |
|
path: |
|
||||||
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.zip
|
${{ steps.get_file_names.outputs.zip_file }}
|
||||||
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.Setup.exe
|
${{ steps.get_file_names.outputs.setup_file }}
|
||||||
|
|
||||||
- name: Create Build Summary
|
- name: Create Build Summary
|
||||||
if: always()
|
if: always()
|
||||||
@@ -376,6 +437,7 @@ jobs:
|
|||||||
echo "**Version:** ${{ needs.prepare.outputs.version }}" >> $GITHUB_STEP_SUMMARY
|
echo "**Version:** ${{ needs.prepare.outputs.version }}" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "**Tag:** \`${{ needs.prepare.outputs.tag_name }}\`" >> $GITHUB_STEP_SUMMARY
|
echo "**Tag:** \`${{ needs.prepare.outputs.tag_name }}\`" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "**Release Type:** ${{ needs.prepare.outputs.is_prerelease == 'true' && 'Pre-release' || 'Release' }}" >> $GITHUB_STEP_SUMMARY
|
echo "**Release Type:** ${{ needs.prepare.outputs.is_prerelease == 'true' && 'Pre-release' || 'Release' }}" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "**Architecture:** ${{ matrix.architecture }}" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "**Commit:** \`${{ github.sha }}\`" >> $GITHUB_STEP_SUMMARY
|
echo "**Commit:** \`${{ github.sha }}\`" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "**Run:** #${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY
|
echo "**Run:** #${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "" >> $GITHUB_STEP_SUMMARY
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
@@ -393,6 +455,7 @@ jobs:
|
|||||||
echo "" >> $GITHUB_STEP_SUMMARY
|
echo "" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "**Version:** ${{ needs.prepare.outputs.version }}" >> $GITHUB_STEP_SUMMARY
|
echo "**Version:** ${{ needs.prepare.outputs.version }}" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "**Tag:** \`${{ needs.prepare.outputs.tag_name }}\`" >> $GITHUB_STEP_SUMMARY
|
echo "**Tag:** \`${{ needs.prepare.outputs.tag_name }}\`" >> $GITHUB_STEP_SUMMARY
|
||||||
|
echo "**Architecture:** ${{ matrix.architecture }}" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "**Event:** ${{ github.event_name }} (${{ github.event.action || 'N/A' }})" >> $GITHUB_STEP_SUMMARY
|
echo "**Event:** ${{ github.event_name }} (${{ github.event.action || 'N/A' }})" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "**Commit:** \`${{ github.sha }}\`" >> $GITHUB_STEP_SUMMARY
|
echo "**Commit:** \`${{ github.sha }}\`" >> $GITHUB_STEP_SUMMARY
|
||||||
echo "**Run:** #${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY
|
echo "**Run:** #${{ github.run_number }}" >> $GITHUB_STEP_SUMMARY
|
||||||
@@ -411,7 +474,8 @@ jobs:
|
|||||||
- name: Download Build Artifacts
|
- name: Download Build Artifacts
|
||||||
uses: actions/download-artifact@v8
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
name: build-files-${{ needs.prepare.outputs.version }}
|
pattern: build-files-${{ needs.prepare.outputs.version }}-*
|
||||||
|
merge-multiple: false
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v6
|
uses: actions/setup-python@v6
|
||||||
@@ -419,11 +483,13 @@ jobs:
|
|||||||
python-version: '3.14'
|
python-version: '3.14'
|
||||||
|
|
||||||
- name: Sign release artifacts with sigstore-python
|
- name: Sign release artifacts with sigstore-python
|
||||||
uses: sigstore/gh-action-sigstore-python@v3.2.0
|
uses: sigstore/gh-action-sigstore-python@v3.3.0
|
||||||
with:
|
with:
|
||||||
inputs: |
|
inputs: |
|
||||||
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.zip
|
build-files-${{ needs.prepare.outputs.version }}-AnyCPU/*.zip
|
||||||
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.Setup.exe
|
build-files-${{ needs.prepare.outputs.version }}-AnyCPU/*.exe
|
||||||
|
build-files-${{ needs.prepare.outputs.version }}-x86/*.zip
|
||||||
|
build-files-${{ needs.prepare.outputs.version }}-x86/*.exe
|
||||||
release-signing-artifacts: true
|
release-signing-artifacts: true
|
||||||
upload-signing-artifacts: true
|
upload-signing-artifacts: true
|
||||||
env:
|
env:
|
||||||
@@ -434,8 +500,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: signed-files-${{ needs.prepare.outputs.version }}
|
name: signed-files-${{ needs.prepare.outputs.version }}
|
||||||
path: |
|
path: |
|
||||||
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.zip.sigstore.json
|
build-files-${{ needs.prepare.outputs.version }}-AnyCPU/*.sigstore.json
|
||||||
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.Setup.exe.sigstore.json
|
build-files-${{ needs.prepare.outputs.version }}-x86/*.sigstore.json
|
||||||
|
|
||||||
release:
|
release:
|
||||||
needs: [prepare, build, sign]
|
needs: [prepare, build, sign]
|
||||||
@@ -450,7 +516,8 @@ jobs:
|
|||||||
- name: Download Build Artifacts
|
- name: Download Build Artifacts
|
||||||
uses: actions/download-artifact@v8
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
name: build-files-${{ needs.prepare.outputs.version }}
|
pattern: build-files-${{ needs.prepare.outputs.version }}-*
|
||||||
|
merge-multiple: true
|
||||||
|
|
||||||
- name: Download Signed Artifacts (if exists)
|
- name: Download Signed Artifacts (if exists)
|
||||||
uses: actions/download-artifact@v8
|
uses: actions/download-artifact@v8
|
||||||
@@ -480,25 +547,45 @@ jobs:
|
|||||||
fileTable+=$'| 文件名 | 大小 |\n'
|
fileTable+=$'| 文件名 | 大小 |\n'
|
||||||
fileTable+=$'|--------|------|\n'
|
fileTable+=$'|--------|------|\n'
|
||||||
|
|
||||||
# ZIP 文件信息
|
# AnyCPU (x64) 架构文件
|
||||||
fileTable+=$'| InkCanvasForClass.CE.'"$version"
|
if [ -f "InkCanvasForClass.CE.$version-x64.zip" ]; then
|
||||||
fileTable+=$'.zip | ${{ needs.build.outputs.zip_size }} bytes |\n'
|
zipSize=$(wc -c < "InkCanvasForClass.CE.$version-x64.zip")
|
||||||
|
fileTable+=$'| InkCanvasForClass.CE.'"$version"'-x64.zip | '"$zipSize"' bytes |\n'
|
||||||
|
fi
|
||||||
|
|
||||||
# 安装包文件信息
|
if [ -f "InkCanvasForClass.CE.$version-x64.Setup.exe" ]; then
|
||||||
installerSize="${{ needs.build.outputs.installer_size }}"
|
installerSize=$(wc -c < "InkCanvasForClass.CE.$version-x64.Setup.exe")
|
||||||
if [ -n "$installerSize" ]; then
|
fileTable+=$'| InkCanvasForClass.CE.'"$version"'-x64.Setup.exe | '"$installerSize"' bytes |\n'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "InkCanvasForClass.CE.$version-x64.zip.sigstore.json" ]; then
|
||||||
|
sigstoreSize=$(wc -c < "InkCanvasForClass.CE.$version-x64.zip.sigstore.json")
|
||||||
|
fileTable+=$'| InkCanvasForClass.CE.'"$version"'-x64.zip.sigstore.json | '"$sigstoreSize"' bytes |\n'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "InkCanvasForClass.CE.$version-x64.Setup.exe.sigstore.json" ]; then
|
||||||
|
sigstoreSize=$(wc -c < "InkCanvasForClass.CE.$version-x64.Setup.exe.sigstore.json")
|
||||||
|
fileTable+=$'| InkCanvasForClass.CE.'"$version"'-x64.Setup.exe.sigstore.json | '"$sigstoreSize"' bytes |\n'
|
||||||
|
fi
|
||||||
|
|
||||||
|
# x86 架构文件
|
||||||
|
if [ -f "InkCanvasForClass.CE.$version.zip" ]; then
|
||||||
|
zipSize=$(wc -c < "InkCanvasForClass.CE.$version.zip")
|
||||||
|
fileTable+=$'| InkCanvasForClass.CE.'"$version"'.zip | '"$zipSize"' bytes |\n'
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -f "InkCanvasForClass.CE.$version.Setup.exe" ]; then
|
||||||
|
installerSize=$(wc -c < "InkCanvasForClass.CE.$version.Setup.exe")
|
||||||
fileTable+=$'| InkCanvasForClass.CE.'"$version"'.Setup.exe | '"$installerSize"' bytes |\n'
|
fileTable+=$'| InkCanvasForClass.CE.'"$version"'.Setup.exe | '"$installerSize"' bytes |\n'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 检查是否有签名文件
|
|
||||||
if [ -f "InkCanvasForClass.CE.$version.zip.sigstore.json" ]; then
|
if [ -f "InkCanvasForClass.CE.$version.zip.sigstore.json" ]; then
|
||||||
sigstoreSize=$(stat -c%s "InkCanvasForClass.CE.$version.zip.sigstore.json")
|
sigstoreSize=$(wc -c < "InkCanvasForClass.CE.$version.zip.sigstore.json")
|
||||||
fileTable+=$'| InkCanvasForClass.CE.'"$version"'.zip.sigstore.json | '"$sigstoreSize"' bytes |\n'
|
fileTable+=$'| InkCanvasForClass.CE.'"$version"'.zip.sigstore.json | '"$sigstoreSize"' bytes |\n'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 检查安装程序签名文件
|
|
||||||
if [ -f "InkCanvasForClass.CE.$version.Setup.exe.sigstore.json" ]; then
|
if [ -f "InkCanvasForClass.CE.$version.Setup.exe.sigstore.json" ]; then
|
||||||
sigstoreSize=$(stat -c%s "InkCanvasForClass.CE.$version.Setup.exe.sigstore.json")
|
sigstoreSize=$(wc -c < "InkCanvasForClass.CE.$version.Setup.exe.sigstore.json")
|
||||||
fileTable+=$'| InkCanvasForClass.CE.'"$version"'.Setup.exe.sigstore.json | '"$sigstoreSize"' bytes |\n'
|
fileTable+=$'| InkCanvasForClass.CE.'"$version"'.Setup.exe.sigstore.json | '"$sigstoreSize"' bytes |\n'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@@ -531,6 +618,10 @@ jobs:
|
|||||||
draft: ${{ github.event.inputs.draft || false }}
|
draft: ${{ github.event.inputs.draft || false }}
|
||||||
prerelease: ${{ needs.prepare.outputs.is_prerelease == 'true' }}
|
prerelease: ${{ needs.prepare.outputs.is_prerelease == 'true' }}
|
||||||
files: |
|
files: |
|
||||||
|
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}-x64.zip
|
||||||
|
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}-x64.Setup.exe
|
||||||
|
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}-x64.zip.sigstore.json
|
||||||
|
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}-x64.Setup.exe.sigstore.json
|
||||||
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.zip
|
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.zip
|
||||||
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.Setup.exe
|
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.Setup.exe
|
||||||
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.zip.sigstore.json
|
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.zip.sigstore.json
|
||||||
@@ -541,7 +632,7 @@ jobs:
|
|||||||
|
|
||||||
post_release:
|
post_release:
|
||||||
needs: [prepare, release]
|
needs: [prepare, release]
|
||||||
if: success()
|
if: success() && github.event.inputs.draft != 'true'
|
||||||
runs-on: ubuntu-slim
|
runs-on: ubuntu-slim
|
||||||
permissions:
|
permissions:
|
||||||
id-token: write
|
id-token: write
|
||||||
@@ -550,7 +641,8 @@ jobs:
|
|||||||
- name: Download Build Artifacts
|
- name: Download Build Artifacts
|
||||||
uses: actions/download-artifact@v8
|
uses: actions/download-artifact@v8
|
||||||
with:
|
with:
|
||||||
name: build-files-${{ needs.prepare.outputs.version }}
|
pattern: build-files-${{ needs.prepare.outputs.version }}-*
|
||||||
|
merge-multiple: true
|
||||||
|
|
||||||
- name: Get beta token
|
- name: Get beta token
|
||||||
uses: octo-sts/action@main
|
uses: octo-sts/action@main
|
||||||
@@ -580,18 +672,32 @@ jobs:
|
|||||||
cd $REPO_DIR
|
cd $REPO_DIR
|
||||||
IS_PRERELEASE="${{ needs.prepare.outputs.is_prerelease }}"
|
IS_PRERELEASE="${{ needs.prepare.outputs.is_prerelease }}"
|
||||||
VERSION="${{ needs.prepare.outputs.version }}"
|
VERSION="${{ needs.prepare.outputs.version }}"
|
||||||
ZIP_FILE="$GITHUB_WORKSPACE/InkCanvasForClass.CE.$VERSION.zip"
|
X64_ZIP_FILE="$GITHUB_WORKSPACE/InkCanvasForClass.CE.$VERSION-x64.zip"
|
||||||
|
X86_ZIP_FILE="$GITHUB_WORKSPACE/InkCanvasForClass.CE.$VERSION.zip"
|
||||||
|
|
||||||
if [ "$IS_PRERELEASE" == "true" ]; then
|
if [ "$IS_PRERELEASE" == "true" ]; then
|
||||||
mkdir -p Beta
|
mkdir -p Beta
|
||||||
cp "$ZIP_FILE" Beta/
|
if [ -f "$X64_ZIP_FILE" ]; then
|
||||||
git add Beta/InkCanvasForClass.CE.$VERSION.zip
|
cp "$X64_ZIP_FILE" Beta/
|
||||||
|
git add Beta/InkCanvasForClass.CE.$VERSION-x64.zip
|
||||||
|
fi
|
||||||
|
if [ -f "$X86_ZIP_FILE" ]; then
|
||||||
|
cp "$X86_ZIP_FILE" Beta/
|
||||||
|
git add Beta/InkCanvasForClass.CE.$VERSION.zip
|
||||||
|
fi
|
||||||
git commit -m "Add $VERSION PreRelease"
|
git commit -m "Add $VERSION PreRelease"
|
||||||
else
|
else
|
||||||
mkdir -p Release Beta
|
mkdir -p Release Beta
|
||||||
cp "$ZIP_FILE" Release/
|
if [ -f "$X64_ZIP_FILE" ]; then
|
||||||
cp "$ZIP_FILE" Beta/
|
cp "$X64_ZIP_FILE" Release/
|
||||||
git add Release/InkCanvasForClass.CE.$VERSION.zip Beta/InkCanvasForClass.CE.$VERSION.zip
|
cp "$X64_ZIP_FILE" Beta/
|
||||||
|
git add Release/InkCanvasForClass.CE.$VERSION-x64.zip Beta/InkCanvasForClass.CE.$VERSION-x64.zip
|
||||||
|
fi
|
||||||
|
if [ -f "$X86_ZIP_FILE" ]; then
|
||||||
|
cp "$X86_ZIP_FILE" Release/
|
||||||
|
cp "$X86_ZIP_FILE" Beta/
|
||||||
|
git add Release/InkCanvasForClass.CE.$VERSION.zip Beta/InkCanvasForClass.CE.$VERSION.zip
|
||||||
|
fi
|
||||||
git commit -m "Add $VERSION Release"
|
git commit -m "Add $VERSION Release"
|
||||||
fi
|
fi
|
||||||
git push origin main
|
git push origin main
|
||||||
@@ -622,6 +728,7 @@ jobs:
|
|||||||
draft: false
|
draft: false
|
||||||
prerelease: ${{ needs.prepare.outputs.is_prerelease == 'true' }}
|
prerelease: ${{ needs.prepare.outputs.is_prerelease == 'true' }}
|
||||||
files: |
|
files: |
|
||||||
|
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}-x64.zip
|
||||||
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.zip
|
InkCanvasForClass.CE.${{ needs.prepare.outputs.version }}.zip
|
||||||
fail_on_unmatched_files: false
|
fail_on_unmatched_files: false
|
||||||
repository: "InkCanvasForClass/community-beta"
|
repository: "InkCanvasForClass/community-beta"
|
||||||
|
|||||||
+4
-5
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.5.33530.505
|
VisualStudioVersion = 17.5.33530.505
|
||||||
@@ -25,10 +24,10 @@ Global
|
|||||||
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|ARM.Build.0 = Debug|Any CPU
|
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|ARM.Build.0 = Debug|Any CPU
|
||||||
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|ARM64.ActiveCfg = Debug|Any CPU
|
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|ARM64.ActiveCfg = Debug|Any CPU
|
||||||
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|ARM64.Build.0 = Debug|Any CPU
|
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|ARM64.Build.0 = Debug|Any CPU
|
||||||
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|x64.ActiveCfg = Debug|Any CPU
|
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|x64.ActiveCfg = Debug|x64
|
||||||
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|x64.Build.0 = Debug|Any CPU
|
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|x64.Build.0 = Debug|x64
|
||||||
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|x86.ActiveCfg = Debug|Any CPU
|
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|x86.ActiveCfg = Debug|x86
|
||||||
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|x86.Build.0 = Debug|Any CPU
|
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Debug|x86.Build.0 = Debug|x86
|
||||||
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Release|Any CPU.Build.0 = Release|Any CPU
|
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Release|ARM.ActiveCfg = Release|Any CPU
|
{8D0EDFC7-F974-4571-BC49-6F3A6653FE81}.Release|ARM.ActiveCfg = Release|Any CPU
|
||||||
|
|||||||
@@ -26,6 +26,7 @@
|
|||||||
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
|
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
|
||||||
<UseWPF>true</UseWPF>
|
<UseWPF>true</UseWPF>
|
||||||
<Configurations>Debug;Release</Configurations>
|
<Configurations>Debug;Release</Configurations>
|
||||||
|
<Platforms>AnyCPU;x86;x64;ARM64</Platforms>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||||
<DebugType>embedded</DebugType>
|
<DebugType>embedded</DebugType>
|
||||||
@@ -59,11 +60,11 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||||
<Title>InkCanvasForClass</Title>
|
<Title>InkCanvasForClass</Title>
|
||||||
<Version>5.0.4</Version>
|
<Version>1.7</Version>
|
||||||
<Authors>Dubi906w</Authors>
|
<Authors>CJK_mkp</Authors>
|
||||||
<Product>InkCanvasForClass</Product>
|
<Product>InkCanvasForClass</Product>
|
||||||
<Copyright>© Copyright HARKOTEK Studio 2024-now</Copyright>
|
<Copyright>© Copyright CJK_mkp 2025-now</Copyright>
|
||||||
<PackageProjectUrl>https://icc.bliemhax.com</PackageProjectUrl>
|
<PackageProjectUrl>https://inkcanvasforclass.github.io</PackageProjectUrl>
|
||||||
<FileVersion>bundled</FileVersion>
|
<FileVersion>bundled</FileVersion>
|
||||||
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
|
<GeneratePackageOnBuild>False</GeneratePackageOnBuild>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@@ -83,14 +84,16 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
|
||||||
<OutputPath>bin\$(Configuration)\$(Platform)\</OutputPath>
|
<OutputPath>bin\$(Configuration)\$(Platform)\</OutputPath>
|
||||||
<DebugType>full</DebugType>
|
<DebugType>none</DebugType>
|
||||||
|
<DebugSymbols>false</DebugSymbols>
|
||||||
<LangVersion>7.3</LangVersion>
|
<LangVersion>7.3</LangVersion>
|
||||||
<PlatformTarget>x64</PlatformTarget>
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
<Prefer32Bit>false</Prefer32Bit>
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
|
||||||
<OutputPath>bin\$(Configuration)\$(Platform)\</OutputPath>
|
<OutputPath>bin\$(Configuration)\$(Platform)\</OutputPath>
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>none</DebugType>
|
||||||
|
<DebugSymbols>false</DebugSymbols>
|
||||||
<LangVersion>7.3</LangVersion>
|
<LangVersion>7.3</LangVersion>
|
||||||
<PlatformTarget>x64</PlatformTarget>
|
<PlatformTarget>x64</PlatformTarget>
|
||||||
<Prefer32Bit>false</Prefer32Bit>
|
<Prefer32Bit>false</Prefer32Bit>
|
||||||
|
|||||||
@@ -593,7 +593,7 @@ namespace Ink_Canvas
|
|||||||
await UnFoldFloatingBar(null);
|
await UnFoldFloatingBar(null);
|
||||||
await WaitUntilFloatingBarHideModeIdleAsync(TimeSpan.FromSeconds(15)).ConfigureAwait(false);
|
await WaitUntilFloatingBarHideModeIdleAsync(TimeSpan.FromSeconds(15)).ConfigureAwait(false);
|
||||||
await Task.Delay(200).ConfigureAwait(false);
|
await Task.Delay(200).ConfigureAwait(false);
|
||||||
await FoldFloatingBar(null).ConfigureAwait(false);
|
await FoldFloatingBar(new object()).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user