mirror of
https://github.com/Simplxss/SignerServer.git
synced 2024-11-21 00:37:53 +08:00
bump version
fix linux fix release fix release fix release fxxk download-artifact
This commit is contained in:
parent
0c061dc47d
commit
7ef0c670f4
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@ -5,7 +5,7 @@ name: "release"
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
- "*"
|
||||
|
||||
permissions: write-all
|
||||
|
||||
@ -15,22 +15,21 @@ jobs:
|
||||
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
needs:
|
||||
- build
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Download All Artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
path: artifacts
|
||||
|
||||
- name: Create Release Draft and Upload Artifacts
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
name: SignerServer V${{ env.VERSION }}
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
body_path: CHANGELOG.md
|
||||
files: |
|
||||
SignerServer-windows-latest-x64.zip
|
||||
SignerServer-ubuntu-latest-x64.zip
|
||||
SignerServer-ubuntu-latest-arm64.zip
|
||||
draft: true
|
||||
artifacts/*/*
|
||||
|
@ -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
|
||||
|
||||
## 提高系统的稳定性
|
||||
|
||||
|
22
src/main.cpp
22
src/main.cpp
@ -12,7 +12,7 @@ void init()
|
||||
try
|
||||
{
|
||||
#if defined(_WIN_PLATFORM_)
|
||||
std::string version = "9.9.12-25234";
|
||||
std::string version = "9.9.12-25300";
|
||||
try
|
||||
{
|
||||
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_)
|
||||
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:
|
||||
break;
|
||||
case DLL_PROCESS_DETACH:
|
||||
if (server != nullptr)
|
||||
{
|
||||
delete server;
|
||||
server = nullptr;
|
||||
}
|
||||
uninit();
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
@ -150,4 +155,9 @@ void __attribute__((constructor)) my_init(void)
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
void __attribute__ ((destructor)) my_fini(void)
|
||||
{
|
||||
uninit();
|
||||
}
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user