Install

Installation instructions from source code...

Environment / build setup

Pre-requisites

Requires:

Install

git clone https://github.com/trek-view/mtp-desktop-uploader/
cd mtp-desktop-uploader
yarn

For MacOS / Linux ONLY do this

chmod -R 755 "node_modules/ffmpeg/binary/darwin/ffmpeg"
cp -R node_modules/ffmpeg/binary binary/
chmod -R 755 binary/

Environment

Make a copy of the .env-sample file in /ROOT/ with the name .env to add your own environmental variables

cp .env-sample .env

Versioning

You can version the app release by following both these steps:

  1. open PROJECT ROOT FOLDER/package.json and change version to x.x.x

"version": "0.0.0",
  1. open PROJECT ROOT FOLDER/app/package.json and change version to 0.0.0

"version": "0.0.0",

Mapbox

You must enter a Mapbox Access Token in the new .env file for MTPDU to work.

Create a Mapbox Access Token here. Mapbox is a paid service, but has a free tier allowing for 50,000 map loads per month.

Add the Mapbox token in .env against this key:

MAPBOX_TOKEN=

Other key=values

The other key/values in the .env file (e.g. MTP_WEB_APP_ID=) perform non-essential functions described in the App Functions section of this wiki.

They can be left blank without causing any breaking issues, though associated functionality will be limited.

Starting Development

Start the app in the dev environment. This starts the renderer process in hot-module-replacement mode and starts a webpack dev server that sends hot updates to the renderer process:

yarn dev

Packaging for Production

To package apps for the local platform (the OS your machine is running):

yarn package