Add Windows packaging workflow and NapCat entry files
Introduces a new GitHub Actions job to automate packaging NapCat for Windows, including downloading dependencies and assembling artifacts. Adds napcat.bat and index.js entry files for Windows distribution in packages/napcat-develop.
This commit is contained in:
1 parent
85b5c881ba
commit
d09a82b1b8
3 files changed
+107
No files matched your search
@@ -0,0 +1,14 @@
|
||||
const path = require('path');
|
||||
const { pathToFileURL } = require('url');
|
||||
|
||||
// 公共目录变量
|
||||
const BASE_DIR = __dirname;
|
||||
const WRAPPER_NODE_PATH = path.join(BASE_DIR, 'wrapper.node');
|
||||
const PACKAGE_JSON_PATH = path.join(BASE_DIR, 'package.json');
|
||||
const CONFIG_JSON_PATH = path.join(BASE_DIR, 'config.json');
|
||||
const NAPCAT_MJS_PATH = path.join(BASE_DIR, 'napcat', 'napcat.mjs');
|
||||
process.env.NAPCAT_WRAPPER_PATH = WRAPPER_NODE_PATH;
|
||||
process.env.NAPCAT_QQ_PACKAGE_INFO_PATH = PACKAGE_JSON_PATH;
|
||||
process.env.NAPCAT_QQ_VERSION_CONFIG_PATH = CONFIG_JSON_PATH;
|
||||
process.env.NAPCAT_DISABLE_PIPE = '1';
|
||||
import(pathToFileURL(NAPCAT_MJS_PATH).href);
|
||||
@@ -0,0 +1 @@
|
||||
node.exe ./index.js
|
||||
Reference in new issue
Block a user