Skip to content

Commit 301d8e8

Browse files
committed
ci: update secrets and publish workflow configuration
- Replace empty secrets with mock values for testing purposes - Update ConfuserEx configuration to use secrets and enhanced obfuscation settings
1 parent 9ff5cab commit 301d8e8

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ jobs:
5252
shell: pwsh
5353
run: |
5454
echo '<project outputDir="." baseDir=".\ci-publish-win64" xmlns="http://confuser.codeplex.com"><rule pattern="true" preset="maximum" inherit="false" /><module path="KeyAsio.Secrets.dll" /></project>'>confuse64.crproj
55-
mkdir ConfuserEx -Force
56-
Invoke-WebRequest https://github.com/mkaring/ConfuserEx/releases/download/v1.6.0/ConfuserEx-CLI.zip -OutFile "ConfuserEx/cli.zip"
57-
7z x "ConfuserEx/cli.zip" -oConfuserEx/
58-
.\ConfuserEx\Confuser.CLI.exe confuse64.crproj -n
55+
mkdir Confuser -Force
56+
Invoke-WebRequest ${{ secrets.CONFUSER_DLURL }} -OutFile "Confuser/cli.zip"
57+
7z x "Confuser/cli.zip" -oConfuser/
58+
.\Confuser\${{ secrets.CONFUSER_EXE }} -file ".\ci-publish-win64\KeyAsio.Secrets.dll" -targetfile "<AssemblyLocation>\<AssemblyFileName>" -anti_debug 1 -hide_calls 1 -control_flow 1 -flow_level 9 -virtualization 1 -naming stealth
5959
del .\ci-publish-win64\KeyAsio.Secrets.pdb -Force
6060
6161
- name: Set dll path
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
public partial class Secrets
22
{
3-
internal static readonly string Dsn = "";
4-
internal static readonly string OfficialPublicKey = "";
3+
internal static readonly string Dsn = "mock-dsn";
4+
internal static readonly string OfficialPublicKey = "mock-key";
55
}

0 commit comments

Comments
 (0)