fork此仓库
https://github.com/vi3t1/vmprotect-3.5.1
破解license(可选)
修改vmprotect-3.5.1/sdk/sdk.cc的475行和478行,将g_serial_is_correct赋值为true,g_serial_is_blacklisted赋值为false
创建Action
选择set up a workflow yourself,将代码粘贴进去
[XML] 纯文本查看 复制代码
name: vmpbuild
on: [pull_request, push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
- name: setup vsdevenv
uses: seanmiddleditch/gha-setup-vsdevenv@master
- name: Install Qt
run: |
pip install aqtinstall
mkdir Qt
cd Qt
aqt install-qt windows desktop 5.12.12 win32_msvc2017
aqt install-qt windows desktop 5.12.12 win64_msvc2017_64
- name: build x64
shell: cmd
run: |
set QTDIR=%GITHUB_WORKSPACE%\Qt\5.12.12\msvc2017_64
set PATH=%PATH%;%GITHUB_WORKSPACE%\Qt\5.12.12\msvc2017_64\bin
cmd.exe /c build-libffi.bat
cmd.exe /c build-ultimate-x64.bat
- name: Upload artifact
uses: actions/upload-artifact@v1
with:
name: vmp
path: bin
构建完成后在Artifacts里下载
|