bump version

fix linux

fix release

fix release

fix release

fxxk download-artifact
This commit is contained in:
simplxs 2024-07-02 15:43:05 +08:00
parent 0c061dc47d
commit 7ef0c670f4
No known key found for this signature in database
GPG Key ID: 1A3833A46D84A08C
4 changed files with 36 additions and 27 deletions

View File

@ -4,7 +4,7 @@ name: build
on: on:
push: push:
branches: branches:
- main - main
pull_request: pull_request:
workflow_dispatch: workflow_dispatch:
workflow_call: workflow_call:

View File

@ -5,7 +5,7 @@ name: "release"
on: on:
push: push:
tags: tags:
- "v*" - "*"
permissions: write-all permissions: write-all
@ -15,22 +15,21 @@ jobs:
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: build needs:
- build
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Download All Artifact - name: Download All Artifact
uses: actions/download-artifact@v4 uses: actions/download-artifact@v4
with:
path: artifacts
- name: Create Release Draft and Upload Artifacts - name: Create Release Draft and Upload Artifacts
uses: softprops/action-gh-release@v2 uses: softprops/action-gh-release@v2
with: with:
name: SignerServer V${{ env.VERSION }} token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }} body_path: CHANGELOG.md
body_path: CHANGELOG.md files: |
files: | artifacts/*/*
SignerServer-windows-latest-x64.zip
SignerServer-ubuntu-latest-x64.zip
SignerServer-ubuntu-latest-arm64.zip
draft: true

View File

@ -1,6 +1,6 @@
# v1.0.0 # v2.0.0
QQ Version: Windows 9.9.9-23424 / Linux 3.2.7-23361 QQ Version: Windows 9.9.11-24815 / Linux 3.2.9-24815
## 提高系统的稳定性 ## 提高系统的稳定性

View File

@ -12,7 +12,7 @@ void init()
try try
{ {
#if defined(_WIN_PLATFORM_) #if defined(_WIN_PLATFORM_)
std::string version = "9.9.12-25234"; std::string version = "9.9.12-25300";
try try
{ {
std::ifstream versionConfig("resources\\app\\versions\\config.json"); std::ifstream versionConfig("resources\\app\\versions\\config.json");
@ -123,6 +123,15 @@ void init()
} }
} }
void uninit()
{
if (server != nullptr)
{
delete server;
server = nullptr;
}
}
#if defined(_WIN_PLATFORM_) #if defined(_WIN_PLATFORM_)
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved) BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
{ {
@ -136,11 +145,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpReserved)
case DLL_THREAD_DETACH: case DLL_THREAD_DETACH:
break; break;
case DLL_PROCESS_DETACH: case DLL_PROCESS_DETACH:
if (server != nullptr) uninit();
{
delete server;
server = nullptr;
}
break; break;
} }
return TRUE; return TRUE;
@ -150,4 +155,9 @@ void __attribute__((constructor)) my_init(void)
{ {
init(); init();
} }
void __attribute__ ((destructor)) my_fini(void)
{
uninit();
}
#endif #endif