pear-build 1.1.0 → 1.1.1
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.
- package/README.md +12 -0
- package/index.js +2 -1
- package/package.json +21 -7
package/README.md
CHANGED
|
@@ -6,6 +6,14 @@
|
|
|
6
6
|
npm install -g pear-build
|
|
7
7
|
```
|
|
8
8
|
|
|
9
|
+
## Supported Platforms
|
|
10
|
+
|
|
11
|
+
- Linux: `linux-arm64`, `linux-x64`
|
|
12
|
+
- macOS: `darwin-arm64`, `darwin-x64`
|
|
13
|
+
- Windows: `win32-arm64`, `win32-x64`
|
|
14
|
+
- iOS: `ios-arm64`, `ios-arm64-simulator`, `ios-x64-simulator`
|
|
15
|
+
- Android: `android-arm64`
|
|
16
|
+
|
|
9
17
|
## Usage
|
|
10
18
|
|
|
11
19
|
Create a build dir outside the project root.
|
|
@@ -28,6 +36,7 @@ node bin.js \
|
|
|
28
36
|
--linux-arm64-app ./test/fixtures/hello-pear-electron/out/HelloPear-linux-arm64/HelloPear.AppImage \
|
|
29
37
|
--linux-x64-app ./test/fixtures/hello-pear-electron/out/HelloPear-linux-x64/HelloPear.AppImage \
|
|
30
38
|
--win32-x64-app ./test/fixtures/hello-pear-electron/out/HelloPear-win32-x64/HelloPear.msix \
|
|
39
|
+
--win32-arm64-app ./test/fixtures/hello-pear-electron/out/HelloPear-win32-arm64/HelloPear.msix \
|
|
31
40
|
--ios-arm64 ./test/fixtures/hello-pear-react-native/ota/ios/HelloPear \
|
|
32
41
|
--ios-arm64-simulator ./test/fixtures/hello-pear-react-native/ota/ios/HelloPear \
|
|
33
42
|
--ios-x64-simulator ./test/fixtures/hello-pear-react-native/ota/ios/HelloPear \
|
|
@@ -68,6 +77,9 @@ my-build
|
|
|
68
77
|
│ ├── linux-x64
|
|
69
78
|
│ │ └── app
|
|
70
79
|
│ │ └── HelloPear.AppImage
|
|
80
|
+
│ ├── win32-arm64
|
|
81
|
+
│ │ └── app
|
|
82
|
+
│ │ └── HelloPear.msix
|
|
71
83
|
│ └── win32-x64
|
|
72
84
|
│ └── app
|
|
73
85
|
│ └── HelloPear.msix
|
package/index.js
CHANGED
|
@@ -13,7 +13,8 @@ class Build extends EventEmitter {
|
|
|
13
13
|
|
|
14
14
|
async run(opts) {
|
|
15
15
|
const pkgPath = path.resolve(opts.package)
|
|
16
|
-
const
|
|
16
|
+
const pkgFile = await fs.promises.readFile(pkgPath, 'utf-8')
|
|
17
|
+
const pkg = JSON.parse(pkgFile)
|
|
17
18
|
const { target = path.resolve(pkg.name + '-' + pkg.version) } = opts
|
|
18
19
|
const darwinArm64App = opts.darwinArm64App
|
|
19
20
|
? ['darwin-arm64', path.resolve(opts.darwinArm64App)]
|
package/package.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pear-build",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"type": "commonjs",
|
|
6
|
-
"bin":
|
|
6
|
+
"bin": {
|
|
7
|
+
"pear-build": "bin.js"
|
|
8
|
+
},
|
|
7
9
|
"description": "Create project deployment folder",
|
|
8
10
|
"author": "Holepunch Inc",
|
|
9
11
|
"license": "Apache-2.0",
|
|
@@ -44,9 +46,10 @@
|
|
|
44
46
|
"scripts": {
|
|
45
47
|
"format": "prettier --write .",
|
|
46
48
|
"lint": "prettier --check . && lunte",
|
|
49
|
+
"make:test": "brittle-make-test test/all.mjs test/*.test.js",
|
|
47
50
|
"test": "npm run test:node && npm run test:bare",
|
|
48
|
-
"test:bare": "brittle-bare --coverage test/all.
|
|
49
|
-
"test:node": "brittle-node --coverage test/all.
|
|
51
|
+
"test:bare": "brittle-bare --coverage test/all.mjs",
|
|
52
|
+
"test:node": "brittle-node --coverage test/all.mjs"
|
|
50
53
|
},
|
|
51
54
|
"dependencies": {
|
|
52
55
|
"bare-events": "^2.8.2",
|
|
@@ -56,12 +59,23 @@
|
|
|
56
59
|
"paparam": "^1.10.0"
|
|
57
60
|
},
|
|
58
61
|
"devDependencies": {
|
|
59
|
-
"
|
|
60
|
-
"brittle": "^3.19.1",
|
|
62
|
+
"brittle": "^4.0.0",
|
|
61
63
|
"lunte": "^1.6.0",
|
|
62
64
|
"mirror-drive": "^1.13.0",
|
|
63
65
|
"prettier": "^3.7.4",
|
|
64
66
|
"prettier-config-holepunch": "^2.0.0",
|
|
65
67
|
"test-tmp": "^1.4.0"
|
|
66
|
-
}
|
|
68
|
+
},
|
|
69
|
+
"directories": {
|
|
70
|
+
"test": "test"
|
|
71
|
+
},
|
|
72
|
+
"repository": {
|
|
73
|
+
"type": "git",
|
|
74
|
+
"url": "git+https://github.com/holepunchto/pear-build.git"
|
|
75
|
+
},
|
|
76
|
+
"keywords": [],
|
|
77
|
+
"bugs": {
|
|
78
|
+
"url": "https://github.com/holepunchto/pear-build/issues"
|
|
79
|
+
},
|
|
80
|
+
"homepage": "https://github.com/holepunchto/pear-build#readme"
|
|
67
81
|
}
|