diff --git a/clients/electron/.gitignore b/clients/electron/.gitignore deleted file mode 100644 index ccedfdac..00000000 --- a/clients/electron/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -projects \ No newline at end of file diff --git a/clients/electron/README.md b/clients/electron/README.md deleted file mode 100644 index f0aae8bb..00000000 --- a/clients/electron/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# PXT micro:bit Electron app - -A very basic wrapper around the web app. To install, copy the contents of this -directory to somewhere outside the main `pxt-microbit` repository. Then run `npm -install && npm start`. diff --git a/clients/electron/index.html b/clients/electron/index.html deleted file mode 100644 index 260b1839..00000000 --- a/clients/electron/index.html +++ /dev/null @@ -1,15 +0,0 @@ - - - - - code the micro:bit - - - - - - diff --git a/clients/electron/main.js b/clients/electron/main.js deleted file mode 100644 index 58bba12e..00000000 --- a/clients/electron/main.js +++ /dev/null @@ -1,39 +0,0 @@ -const {app, BrowserWindow, Menu} = require('electron') -const pxt = require('pxt-core') -const path = require('path') - -let win - -const cliPath = path.join(process.cwd(), "node_modules/pxt-microbit") - -function startServerAndCreateWindow() { - pxt.mainCli(cliPath, ["serve", "-no-browser"]) - createWindow() -} - -function createWindow () { - win = new BrowserWindow({ - width: 800, - height: 600, - title: "code the micro:bit" - }) - Menu.setApplicationMenu(null) - win.loadURL(`file://${__dirname}/index.html#local_token=${pxt.globalConfig.localToken}`) - win.on('closed', () => { - win = null - }) -} - -app.on('ready', startServerAndCreateWindow) - -app.on('window-all-closed', () => { - if (process.platform !== 'darwin') { - app.quit() - } -}) - -app.on('activate', () => { - if (win === null) { - createWindow() - } -}) diff --git a/clients/electron/package.json b/clients/electron/package.json deleted file mode 100644 index f9633774..00000000 --- a/clients/electron/package.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "name" : "code-the-microbit", - "version" : "1.0.0", - "description": "Blocks / Javascript editor", - "author": "Microsoft", - "main" : "main.js", - "scripts": { - "start": "node_modules/.bin/electron ." - }, - "devDependencies": { - "electron": "*", - "pxt-microbit": "*" - } -} diff --git a/electron/product.json b/electron/product.json new file mode 100644 index 00000000..3c4abe15 --- /dev/null +++ b/electron/product.json @@ -0,0 +1,14 @@ +{ + "applicationName": "pxt-microbit-oss", + "dataFolderName": ".pxt-microbit-oss", + "darwinBundleIdentifier": "com.microsoft.pxtoss", + "nameShort": "PXT Microbit - OSS", + "nameLong": "PXT Microbit - OSS", + "targetId": "pxt-microbit", + "win32AppId": "{{92db071a-6f58-4938-8c97-13c873f4da13}", + "win32AppUserModelId": "Microsoft.PXTMicrobitOss", + "win32DirName": "Microsoft PXT-Microbit - OSS", + "win32MutexName": "pxtmicrobitoss", + "win32NameVersion": "Microsoft PXT-Microbit-OSS", + "win32RegValueName": "PXTMicrobitOss" +} \ No newline at end of file