forked from SynDaverCO/symple-slicer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Now able to create Windows installers
- Loading branch information
Showing
7 changed files
with
101 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
Building Symple Slicer Desktop | ||
------------------------------ | ||
|
||
To build the Electron desktop app, install node.js on your machine then: | ||
|
||
``` | ||
git clone [email protected]:SynDaverCO/symple-slicer.git | ||
cd symple-slicer | ||
git submodule update --init | ||
npm install | ||
``` | ||
|
||
To run: | ||
|
||
``` | ||
npm start | ||
``` | ||
|
||
To build all distributibles: | ||
|
||
``` | ||
npm run package-win | ||
npm run package-mac | ||
npm run package-linux | ||
npm run installer-win | ||
``` | ||
|
||
Distributables will be stored in the `dist` directory. | ||
|
||
|
||
Building Symple Slicer Web | ||
-------------------------- | ||
|
||
Building the web version of Symple Slicer relies on UNIX shell | ||
scripts. Under Windows, you may want to use WSL version 1. | ||
|
||
There is a bug in Chromium where WebGL will fail to start | ||
if the files are hosted in a network drive, as is the case | ||
for the native WSL Linux file system. Because of this, it is | ||
necessary to checkout the files into a Windows native drive | ||
using the regular windows command prompt (see steps above), | ||
then from within WSL create a symlink to that location: | ||
|
||
``` | ||
ln -s /mnt/c/Users/USERNAME/Documents/symple-slicer | ||
cd symple-slicer | ||
``` | ||
|
||
To run a web server on localhost serving the app: | ||
|
||
``` | ||
./run-local-host.sh | ||
``` | ||
|
||
To rebuild the Cura Engine from source: | ||
|
||
``` | ||
./build-cura-engine.sh | ||
``` | ||
|
||
To create a web release of Symple Slicer: | ||
|
||
``` | ||
./build-web-release.sh | ||
``` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,30 @@ | ||
{ | ||
"name": "SympleSlicer", | ||
"version": "1.0.0", | ||
"description": "A desktop version of SynDaver Symple Slicer built with Electron", | ||
"author": "SynDaver Labs, Inc.", | ||
"license": "AGPL-3.0-or-later", | ||
"homepage": "https://github.com/SynDaverCO/symple-slicer", | ||
"bugs": { | ||
"url": "https://github.com/SynDaverCO/symple-slicer/issues" | ||
}, | ||
"scripts": { | ||
"package-mac": "electron-packager src-app --platform=darwin --arch=x64 --overwrite --icon=src-app/images/icon.icns --prune=true --out=release-desktop", | ||
"package-win": "electron-packager src-app --platform=win32 --arch=x64 --overwrite --icon=src-app/images/favicon.ico --prune=true --out=release-desktop", | ||
"package-linux": "electron-packager src-app --platform=linux --arch=x64 --overwrite --icon=src-app/images/icon_512px.png --prune=true --out=release-desktop" | ||
"start": "electron src-app", | ||
"start-debug": "electron --enable-logging src-app", | ||
"package-mac": "electron-packager src-app --platform=darwin --arch=x64 --overwrite --icon=app/images/icon.icns --prune=true --out=dist", | ||
"package-win": "electron-packager src-app --platform=win32 --arch=x64 --overwrite --icon=app/images/favicon.ico --prune=true --out=dist", | ||
"package-linux": "electron-packager src-app --platform=linux --arch=x64 --overwrite --icon=app/images/icon_512px.png --prune=true --out=dist", | ||
"installer-win": "electron-builder --prepackaged dist/SympleSlicer-win32-x64", | ||
"postinstall": "electron-builder install-app-deps" | ||
}, | ||
"build": { | ||
"directories": { | ||
"app": "src-app" | ||
} | ||
}, | ||
"devDependencies": { | ||
"electron-packager": "^14.2.1" | ||
"electron-packager": "^14.2.1", | ||
"electron-builder": "^22.4.1", | ||
"electron": "^9.0.3" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters