22
33Desktop application for the [ Pocket Science Lab (PSlab)] ( https://pslab.io ) open hardware platform.
44
5- Development [ ![ Build Status] ( https://github.com/fossasia/workflows/CI/badge.svg?branch=development )] ( https://github.com/fossasia/pslab-desktop/actions?query=workflow%3Aci )
5+ Development [ ![ Build Status] (
6+ https://github.com/fossasia/pslab-desktop/workflows/Build/release/badge.svg )] (
7+ https://github.com/fossasia/pslab-desktop/actions )
68[ ![ Codacy Badge] ( https://api.codacy.com/project/badge/Grade/8259e5c2220f484e95a88cf4aaed1a96 )] ( https://www.codacy.com/app/mb/pslab-desktop?utm_source=github.com& ; utm_medium=referral& ; utm_content=fossasia/pslab-desktop& ; utm_campaign=Badge_Grade )
79[ ![ Mailing List] ( https://img.shields.io/badge/Mailing%20List-FOSSASIA-blue.svg )] ( https://groups.google.com/forum/#!forum/pslab-fossasia )
810[ ![ Gitter] ( https://badges.gitter.im/fossasia/pslab.svg )] ( https://gitter.im/fossasia/pslab?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge )
@@ -29,37 +31,26 @@ Please join us on the following channels:
2931
3032## Downloads and Distribution
3133
32- ** TODO**
33-
34- - [ ] redo the build pipeline and publish assets as release attachments
35- - [ ] document building, bundling and distribution steps
34+ We are providing binary packages. Please see the [ releases page for downloads] (
35+ https://github.com/fossasia/pslab-desktop/releases ).
3636
3737### Arch Linux
3838
3939If you are running Arch Linux or another distribution based on it, install
4040[ ` pslab-desktop ` ] ( https://aur.archlinux.org/packages/pslab-desktop ) .
4141
42- ### Debian based distributions (outdated)
43-
44- We have been building snapshots for Debian based distributions. Please see the
45- [ install branch] ( https://github.com/fossasia/pslab-desktop/tree/install ) .
42+ ### Other Linux distributions
4643
47- * [ development build ] ( https://github.com/fossasia/pslab-desktop/raw/install/pslab-desktop-development-linux. deb)
48- * [ stable build ] ( https://github.com/fossasia/pslab-desktop/raw/install/pslab-desktop-master-linux.deb )
44+ There are packages in ` . deb` format (Debian, Ubuntu and derivatives), ` .rpm `
45+ (Fedora, openSUSE etc), and ` .tar.xz ` archives.
4946
50- ### Windows (outdated)
47+ ### Windows
5148
52- As for Debian, we have been building Windows installers, also found in the
53- [ install branch] ( https://github.com/fossasia/pslab-desktop/tree/install ) .
49+ There are installers as ` .exe ` executables, based on NSIS.
5450
5551### macOS
5652
57- We are not producing builds for macOS, but provide instructions to do so.
58-
59- First you need to follow the instructions to [ set up a development environment] (
60- #setting-up-a-development-environment). Then [ build the app] ( #building-the-app ) .
61-
62- After the process, open the newly created directory named ` dist/ ` in Finder.
53+ There are ` .dmg ` image files and ` .zip ` archives.
6354
6455Open the ` PSLab-*.dmg ` file, drag and drop the ` PSLab ` icon to the ` Application `
6556directory within the installation window, and PSLab will appear in your
@@ -195,15 +186,32 @@ Any action from the UI thus requires the following:
195186
196187## Building the App
197188
198- While in the project root, run the build script as defined in ` package.json ` :
189+ First you need to follow the instructions to [ set up a development environment] (
190+ #setting-up-a-development-environment).
191+
192+ While in the project root, run the build scripts as defined in ` package.json ` :
193+
194+ ``` sh
195+ npm run build
196+ npm run build:electron
197+ ```
198+
199+ For a platform-specific build, run the following instead, where ` PLATFORM ` can
200+ be [ any of ` linux ` , ` mac ` , or ` win ` ] ( https://www.electron.build/cli ) :
199201
200202``` sh
201203npm run build
204+ npm run build:electron -- --$PLATFORM
202205```
203206
204- For a platform-specific build, run ` npm run build-{linux,mac,win} ` instead.
207+ If you do not want to create an archive or package:
208+
209+ ``` sh
210+ npm run build
211+ npm run pack
212+ ```
205213
206- This command will produce two directories in the project root. The ` build/ `
214+ This will produce two directories in the project root. The ` build/ `
207215directory contains the optimized React files, while the ` dist/ ` directory
208216contains the final Electron build with everything else.
209217
0 commit comments