项目作者: retrobox

项目描述 :
💻 Retro-App - Desktop cross-platform version
高级语言: Vue
项目地址: git://github.com/retrobox/desktop.git
创建时间: 2018-12-27T08:36:08Z
项目社区:https://github.com/retrobox/desktop

开源协议:

下载


Desktop electron app

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

Preview :

alt

Build Setup (linux)

  1. # install dependencies
  2. yarn install
  3. # serve with hot reload at localhost:9080
  4. env WEB_ENDPOINT=https://retrobox.tech WEB_SOCKET_ENDPOINT=https://ws.retrobox.tech API_ENDPOINT=http://api.retrobox.tech yarn run dev
  5. # build electron application for production
  6. 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.
  1. # install dependencies
  2. yarn install
  3. # install Native Node Modules
  4. yarn install --save-dev electron-rebuild
  5. # serve with hot reload at localhost:9080
  6. yarn run dev
  7. # build electron application for production
  8. yarn run build
  9. # Every time you run "yarn install", run this
  10. ./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