pear-build
v1.3.2
Published
Create project deployment folder
Readme
pear-build
Build appling for a Pear application
npm install -g pear-buildSupported Platforms
- Linux:
linux-arm64,linux-x64 - macOS:
darwin-arm64,darwin-x64 - Windows:
win32-arm64,win32-x64 - iOS:
ios-arm64,ios-arm64-simulator,ios-x64-simulator - Android:
android-arm64
Usage
Create a build dir outside the project root.
pear-build \
--package=./my-app/package.json \
--darwin-arm64-app ./my-app/MyApp-darwin-arm64/MyApp.app \
--linux-x64-app=./my-app/MyApp-linux-x64/MyApp.AppImage \
--target=./my-buildEach *-app flag can be passed more than once to place several artifacts under the same architecture. Every artifact must be named after productName (or name), or after one of the bin names when bin is an object:
pear-build \
--package=./my-app/package.json \
--darwin-arm64-app ./my-app/MyApp-darwin-arm64/MyApp.app \
--darwin-arm64-app ./my-app/MyApp-darwin-arm64/my-app \
--target=./my-buildExample
node bin.js \
--package ./test/fixtures/hello-pear-electron/package.json \
--darwin-arm64-app ./test/fixtures/hello-pear-electron/by-arch/HelloPear-darwin-arm64/HelloPear.app \
--darwin-x64-app ./test/fixtures/hello-pear-electron/by-arch/HelloPear-darwin-x64/HelloPear.app \
--linux-arm64-app ./test/fixtures/hello-pear-electron/by-arch/HelloPear-linux-arm64/HelloPear.AppImage \
--linux-x64-app ./test/fixtures/hello-pear-electron/by-arch/HelloPear-linux-x64/HelloPear.AppImage \
--win32-x64-app ./test/fixtures/hello-pear-electron/by-arch/HelloPear-win32-x64/HelloPear.msix \
--win32-arm64-app ./test/fixtures/hello-pear-electron/by-arch/HelloPear-win32-arm64/HelloPear.msix \
--ios-arm64 ./test/fixtures/hello-pear-react-native/ota/ios/HelloPear \
--ios-arm64-simulator ./test/fixtures/hello-pear-react-native/ota/ios/HelloPear \
--ios-x64-simulator ./test/fixtures/hello-pear-react-native/ota/ios/HelloPear \
--android-arm64 ./test/fixtures/hello-pear-react-native/ota/android/HelloPear \
--config ./test/fixtures/hello-pear-react-native/pear.json \
--target ./my-build$ tree my-build/
my-build
├── by-arch
│ ├── android-arm64
│ │ └── app
│ │ └── HelloPear
│ │ └── app.bundle
│ ├── darwin-arm64
│ │ └── app
│ │ └── HelloPear.app
│ ├── darwin-x64
│ │ └── app
│ │ └── HelloPear.app
│ ├── ios-arm64
│ │ └── app
│ │ └── HelloPear
│ │ └── app.bundle
│ ├── ios-arm64-simulator
│ │ └── app
│ │ └── HelloPear
│ │ └── app.bundle
│ ├── ios-x64-simulator
│ │ └── app
│ │ └── HelloPear
│ │ └── app.bundle
│ ├── linux-arm64
│ │ └── app
│ │ └── HelloPear.AppImage
│ ├── linux-x64
│ │ └── app
│ │ └── HelloPear.AppImage
│ ├── win32-arm64
│ │ └── app
│ │ └── HelloPear.msix
│ └── win32-x64
│ └── app
│ └── HelloPear.msix
└── package.json
└── pear.jsonLicense
Apache-2.0
