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:
|
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: |
|
||||||
SignerServer-windows-latest-x64.zip
|
artifacts/*/*
|
||||||
SignerServer-ubuntu-latest-x64.zip
|
|
||||||
SignerServer-ubuntu-latest-arm64.zip
|
|
||||||
draft: true
|
|
||||||
|
@ -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
|
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
|
Loading…
x
Reference in New Issue
Block a user