Skip to content

Commit d37fd66

Browse files
committed
修改jar
1 parent 33837ec commit d37fd66

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

.github/workflows/release.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,7 @@ jobs:
8686
- name: Enable tls1
8787
if: ${{ runner.os == 'Windows' }}
8888
run: |
89-
# sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" "${{ env.JAVA_HOME }}/conf/security/java.security"
90-
$filePath = "${{ env.JAVA_HOME }}\conf\security\java.security"
91-
$content = Get-Content $filePath -Raw
92-
$updatedContent = $content -replace '^(jdk.tls.disabledAlgorithms=)(.*)( TLSv1, TLSv1.1,)(.*)', '$1$2$4'
93-
$updatedContent | Set-Content $filePath
89+
sed -i '' "s/\(^jdk.tls.disabledAlgorithms=\)\(.*\)\( TLSv1, TLSv1.1,\)\(.*\)/\1\2\4/" "${{ env.JAVA_HOME }}/conf/security/java.security"
9490
shell: pwsh
9591

9692
# java.security open tls1 macOS

0 commit comments

Comments
 (0)