Skip to content

retrobox/desktop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Desktop electron app

Build with electron-vue, available in french and english (at this time).

Preview :

alt

Build Setup (linux)

# install dependencies
yarn install

# serve with hot reload at localhost:9080
env WEB_ENDPOINT=https://retrobox.tech WEB_SOCKET_ENDPOINT=https://ws.retrobox.tech API_ENDPOINT=http://api.retrobox.tech yarn run dev

# build electron application for production
yarn run build


Build Setup (windows)

Environment needed (or recommended) :

  1. VS Enterprise 2015 with all components (or just community version) (And restart your computer after the installation)
  2. Python 2.7 (and ONLY this version)
  3. Yarn 1.16.0 (or newer)
  4. Node v10.15.0 (or newer)
  5. API & web & ws server online on your lan.
# install dependencies
yarn install

# install Native Node Modules
yarn install --save-dev electron-rebuild

# serve with hot reload at localhost:9080
yarn run dev

# build electron application for production
yarn run build

# Every time you run "yarn install", run this
./node_modules/.bin/electron-rebuild

You will get frequently error with drivelist dependency... So we found the fix : Install VS Enterprise 2015 and everything was functional !

More information's here :

Natives Node Modules

Our issue on drivelist

sudo prompt

option 1 (most simple):

at the start, verify if the programm was launch under administrative rights, if not ask the user to do so

option 2:

when it come to write image, try to launch the same programm by tring to known where the programm is run

on windows: use more complicated thing while dont elevate with linux

Dependencies

See in package.json
vue crypto
vuetify electron-sudo
drivelist is-admin
etcher-image-write is-elevated
decompress socket.io-client
decompress-unzip sudo-prompt
filesize vue-clipboard2
request vue-i18n
request-progress vuex
axios yauzl