@flun/desktop-builder 1.0.2 → 1.0.3

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +10 -4
  2. package/index.js +3 -1
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,7 +1,13 @@
1
1
  # 变更日志
2
- ## [1.02] - 2026-07-03 10:43
2
+
3
+ ## [1.0.3] - 2026-07-04 21:32
4
+ ### 修复
5
+ - 修复 Windows 环境下 `npx desktop-builder build` 命令无任何输出的问题(入口判断逻辑改用 `pathToFileURL` 统一路径格式)。
6
+
7
+ ## [1.0.2] - 2026-07-03 10:43
3
8
  ### 优化
4
- - 简化使用示例;
5
- ## [1.01] - 2026-07-03 10:38
9
+ - 简化使用示例;
10
+
11
+ ## [1.0.1] - 2026-07-03 10:38
6
12
  ### 首发
7
- - 将任意 Node.js 网站一键打包为当前桌面应用('win', 'mac', 'linux')(基于 Electron),支持高度自定义配置;
13
+ - 将任意 Node.js 网站一键打包为当前桌面应用('win', 'mac', 'linux')(基于 Electron),支持高度自定义配置;
package/index.js CHANGED
@@ -1,4 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { runCLI, build } from './lib/build.js';
3
- if (import.meta.url === `file://${process.argv[1]}`) await runCLI();
3
+ import { pathToFileURL } from 'url';
4
+
5
+ if (import.meta.url === pathToFileURL(process.argv[1]).href) await runCLI();
4
6
  export { build };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flun/desktop-builder",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "将任意 Node.js 网站一键打包为当前桌面应用('win', 'mac', 'linux')(基于 Electron),支持高度自定义配置;",
5
5
  "type": "module",
6
6
  "types": "index.d.ts",