Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,6 @@ typings/

.idea
.vscode
.DS_Store

# End of https://www.gitignore.io/api/node
5 changes: 3 additions & 2 deletions README.md
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ For windows platform:
### Development Installation

- Clone the repository
- Run from cmd `yarn install`
- Run from cmd `yarn get all` - this would download all external
- Run from cmd/Terminal `yarn install`
- Run from cmd/Terminal `yarn get all` - this would download all external
modules for the launcher. Use `yarn get --help` to change the modules
that you want to download.
- If you're using macOS, run from the Terminal ``sudo chmod -R u+x .``.

### Run Program Locally

Expand Down
16 changes: 16 additions & 0 deletions macos/afterPackHook.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

const fs = require('fs')
const path = require('path')
const { exec } = require('child_process')

exports.default = async function (context) {
if (context.appOutDir.endsWith('/mac')) {
fs.copyFile(path.resolve(__dirname, './setup/run'), context.appOutDir + '/run', (err) => {
if (err) throw err
console.log('The run script was copied to dist/mac.\nCreating the mac.zip...')
exec('cd ./dist && zip -r -X mac.zip mac', (err) => {
if (err) throw err
})
})
}
}
14 changes: 14 additions & 0 deletions macos/setup/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
cd "${DIR}"

echo ""
echo ""
echo "Welcome to FIRST LEGO League TMS!"
echo "This application requires super user status."
echo "If prompted, please enter in your account password."

sudo chmod -R u+x .
mkdir -p "internals"
sudo "./FIRST LEGO League TMS.app/Contents/macOS/FIRST LEGO League TMS"
5 changes: 5 additions & 0 deletions package.json
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,18 @@
"appId": "com.fll-tools.launcher",
"productName": "FIRST LEGO League TMS",
"artifactName": "fll-launcher-${version}",
"afterPack": "./macos/afterPackHook.js",
"directories": {
"buildResources": "resources",
"output": "dist"
},
"files": [
"dist/electron/**/*"
],
"mac": {
"category": "public.app-category.education",
"target": "dir"
},
"buildDependenciesFromSource": true
},
"dependencies": {
Expand Down
Binary file added resources/dmg-background.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.