6262 java-version : " 17"
6363 distribution : " temurin"
6464 java-package : " jre"
65+ architecture : " x64"
6566
6667 # Install jre MacOS arm64
6768 - name : Install Jre MacOS arm64
8687 - name : Enable tls1
8788 if : ${{ runner.os == 'Windows' }}
8889 run : |
89- sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" "${{ env.JAVA_HOME }}/conf/security/java.security"
90+ # sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" "${{ env.JAVA_HOME }}\conf\security\java.security"
91+ $filePath = "${{ env.JAVA_HOME }}\conf\security\java.security"
92+ $content = Get-Content $filePath -Raw
93+ $updatedContent = $content -replace '^(jdk.tls.disabledAlgorithms=)(.*)( TLSv1, TLSv1.1,)(.*)', '$1$2$4'
94+ $updatedContent | Set-Content $filePath
9095 shell : pwsh
9196
9297 # java.security open tls1 macOS
@@ -206,7 +211,7 @@ jobs:
206211 run : |
207212 xcrun notarytool store-credentials "Chat2DB" --apple-id "${{secrets.MAC_APPLE_ID}}" --password "${{secrets.MAC_APPLE_PASSWORD}}" --team-id "${{secrets.MAC_TEAM_ID}}"
208213 xcrun notarytool submit chat2db-client/release/Chat2DB-${{ steps.chat2db_version.outputs.substring }}.dmg --keychain-profile "Chat2DB"
209-
214+
210215 # macos arm64
211216 - name : Build/release Electron app for MacOS arm64
212217 if : ${{ runner.os == 'macOS' && matrix.arch == 'arm64' }}
@@ -342,4 +347,4 @@ jobs:
342347 {
343348 "title": "Linux-test-打包完成通知",
344349 "text": "# Linux-test-打包完成通知 \n  \n ### 任务id:[${{ github.run_id }}](https://github.com/chat2db/Chat2DB/actions/runs/${{ github.run_id }}) \n ### Linux下载地址:[https://oss.sqlgpt.cn/release/${{ steps.chat2db_version.outputs.substring }}/Chat2DB-${{ steps.chat2db_version.outputs.substring }}.AppImage](https://oss.sqlgpt.cn/release/${{ steps.chat2db_version.outputs.substring }}/Chat2DB-${{ steps.chat2db_version.outputs.substring }}.AppImage)"
345- }
350+ }
0 commit comments