@bobfrankston/msger 0.1.219 → 0.1.221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
/**
|
|
5
|
+
* msger-native builder — delegates to @bobfrankston/rust-builder
|
|
6
|
+
*/
|
|
7
|
+
var rust_builder_1 = require("@bobfrankston/rust-builder");
|
|
8
|
+
var path_1 = require("path");
|
|
9
|
+
var url_1 = require("url");
|
|
10
|
+
var __dirname = path_1.default.dirname((0, url_1.fileURLToPath)(import.meta.url));
|
|
11
|
+
var nativeDir = path_1.default.join(__dirname, "..");
|
|
12
|
+
var binDir = path_1.default.join(nativeDir, "bin");
|
|
13
|
+
var config = (0, rust_builder_1.loadConfig)(path_1.default.join(__dirname, "build-config.json"), "msgernative", nativeDir, binDir);
|
|
14
|
+
// msger-specific: copy icons
|
|
15
|
+
config.options = config.options || {};
|
|
16
|
+
config.options.icons = ["msger.ico", "msger.png"];
|
|
17
|
+
config.options.iconDir = path_1.default.join(nativeDir, "..");
|
|
18
|
+
var success = (0, rust_builder_1.build)(config);
|
|
19
|
+
if (!success)
|
|
20
|
+
process.exit(1);
|