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