add: unix/linux lib support; upload libs
This commit is contained in:
parent
d8a0944810
commit
602c6ed43a
|
@ -53,12 +53,18 @@ jobs:
|
|||
- name: Build
|
||||
run: cmake --build ${{ env.BUILD_PATH }} -j 4 --config ${{ env.BUILD_TYPE }}
|
||||
|
||||
- name: Upload artifact
|
||||
- name: Upload artifact executable
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Windows amd64 Build - MSVC
|
||||
path: ${{ env.BUILD_PATH }}/${{ env.BUILD_TYPE }}/ncmdump.exe
|
||||
|
||||
- name: Upload artifact DLL
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: Windows amd64 Build - MSVC DLL
|
||||
path: ${{ env.BUILD_PATH }}/${{ env.BUILD_TYPE }}/libncmdump.dll
|
||||
|
||||
build_on_linux:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
#include "ncmcrypt.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#define API __declspec(dllexport)
|
||||
#else
|
||||
#define API
|
||||
#endif
|
||||
|
||||
extern "C" {
|
||||
API NeteaseCrypt* CreateNeteaseCrypt(const char* path) {
|
||||
|
|
Loading…
Reference in New Issue