62
62
java-version : " 17"
63
63
distribution : " temurin"
64
64
java-package : " jre"
65
+ architecture : " x64"
65
66
66
67
# Install jre MacOS arm64
67
68
- name : Install Jre MacOS arm64
86
87
- name : Enable tls1
87
88
if : ${{ runner.os == 'Windows' }}
88
89
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
90
95
shell : pwsh
91
96
92
97
# java.security open tls1 macOS
@@ -206,7 +211,7 @@ jobs:
206
211
run : |
207
212
xcrun notarytool store-credentials "Chat2DB" --apple-id "${{secrets.MAC_APPLE_ID}}" --password "${{secrets.MAC_APPLE_PASSWORD}}" --team-id "${{secrets.MAC_TEAM_ID}}"
208
213
xcrun notarytool submit chat2db-client/release/Chat2DB-${{ steps.chat2db_version.outputs.substring }}.dmg --keychain-profile "Chat2DB"
209
-
214
+
210
215
# macos arm64
211
216
- name : Build/release Electron app for MacOS arm64
212
217
if : ${{ runner.os == 'macOS' && matrix.arch == 'arm64' }}
@@ -342,4 +347,4 @@ jobs:
342
347
{
343
348
"title": "Linux-test-打包完成通知",
344
349
"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