mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-05 16:38:32 +00:00
Renamed the application. Updated links and version
Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
## Electron
|
||||
|
||||
All-in-one packager producing the `Arduino Pro IDE` Electron-based application.
|
||||
All-in-one packager producing the `Arduino IDE` Electron-based application.
|
||||
|
||||
## Prerequisites
|
||||
|
||||
The prerequisites are defined [here](https://github.com/theia-ide/theia/blob/master/doc/Developing.md#prerequisites).
|
||||
|
||||
## Build
|
||||
To build the Arduino Pro IDE application you have to do the followings:
|
||||
To build the Arduino IDE application you have to do the followings:
|
||||
```bash
|
||||
yarn --cwd ./electron/packager/ && yarn --cwd ./electron/packager/ package
|
||||
```
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// @ts-check
|
||||
const { setup, log } = require('node-log-rotate');
|
||||
setup({
|
||||
appName: 'Arduino Pro IDE',
|
||||
appName: 'Arduino IDE',
|
||||
maxSize: 10 * 1024 * 1024
|
||||
});
|
||||
for (const name of ['log', 'trace', 'info', 'warn', 'error']) {
|
||||
@@ -15,7 +15,7 @@ for (const name of ['log', 'trace', 'info', 'warn', 'error']) {
|
||||
const { BackendApplicationConfigProvider } = require('@theia/core/lib/node/backend-application-config-provider');
|
||||
const main = require('@theia/core/lib/node/main');
|
||||
BackendApplicationConfigProvider.set({
|
||||
"configDirName": ".arduinoProIDE",
|
||||
"configDirName": ".arduinoIDE",
|
||||
"singleInstance": true
|
||||
});
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"main": "scripts/arduino-pro-ide-electron-main.js",
|
||||
"main": "scripts/arduino-ide-electron-main.js",
|
||||
"author": "Arduino SA",
|
||||
"resolutions": {
|
||||
"**/fs-extra": "^4.0.3"
|
||||
@@ -29,7 +29,7 @@
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/arduino/arduino-pro-ide.git"
|
||||
"url": "git+https://github.com/arduino/arduino-ide.git"
|
||||
},
|
||||
"// Notes:": [
|
||||
"The resolution for `fs-extra` was required due to this: https://spectrum.chat/theia/general/our-theia-electron-builder-app-no-longer-starts~f5cf09a0-6d88-448b-8818-24ad0ec2ee7c"
|
||||
@@ -48,7 +48,7 @@
|
||||
}
|
||||
},
|
||||
"build": {
|
||||
"productName": "Arduino Pro IDE",
|
||||
"productName": "Arduino IDE",
|
||||
"asar": false,
|
||||
"directories": {
|
||||
"buildResources": "resources"
|
||||
@@ -130,7 +130,7 @@
|
||||
{
|
||||
"provider": "s3",
|
||||
"bucket": "arduino-downloads-prod-beagle",
|
||||
"path": "arduino-pro-ide/nightly"
|
||||
"path": "arduino-ide/nightly"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
@@ -18,7 +18,7 @@ function artifactName() {
|
||||
return getVersion();
|
||||
}
|
||||
})();
|
||||
const name = 'arduino-pro-ide';
|
||||
const name = 'arduino-ide';
|
||||
switch (platform) {
|
||||
case 'win32': {
|
||||
if (arch === 'x64') {
|
||||
@@ -99,8 +99,8 @@ function generateTemplate(buildDate) {
|
||||
// do `export PUBLISH=true yarn package` if you want to mimic CI build locally.
|
||||
// const electronPublish = release || (isCI && currentBranch() === 'master') || process.env.PUBLISH === 'true';
|
||||
const version = getVersion();
|
||||
const productName = 'Arduino Pro IDE';
|
||||
const name = 'arduino-pro-ide';
|
||||
const productName = 'Arduino IDE';
|
||||
const name = 'arduino-ide';
|
||||
let customizations = {
|
||||
name,
|
||||
description: productName,
|
||||
|
||||
@@ -276,15 +276,15 @@ ${fs.readFileSync(path('..', 'build', 'package.json')).toString()}
|
||||
const filesToCopy = [];
|
||||
switch (platform) {
|
||||
case 'linux': {
|
||||
filesToCopy.push(...glob.sync('**/arduino-pro-ide*.{zip,AppImage}', { cwd }).map(p => join(cwd, p)));
|
||||
filesToCopy.push(...glob.sync('**/arduino-ide*.{zip,AppImage}', { cwd }).map(p => join(cwd, p)));
|
||||
break;
|
||||
}
|
||||
case 'win32': {
|
||||
filesToCopy.push(...glob.sync('**/arduino-pro-ide*.{exe,msi,zip}', { cwd }).map(p => join(cwd, p)));
|
||||
filesToCopy.push(...glob.sync('**/arduino-ide*.{exe,msi,zip}', { cwd }).map(p => join(cwd, p)));
|
||||
break;
|
||||
}
|
||||
case 'darwin': {
|
||||
filesToCopy.push(...glob.sync('**/arduino-pro-ide*.{dmg,zip}', { cwd }).map(p => join(cwd, p)));
|
||||
filesToCopy.push(...glob.sync('**/arduino-ide*.{dmg,zip}', { cwd }).map(p => join(cwd, p)));
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"private": true,
|
||||
"name": "packager",
|
||||
"version": "1.0.0",
|
||||
"description": "Packager for the Arduino Pro IDE electron application",
|
||||
"description": "Packager for the Arduino IDE electron application",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"prepare": "yarn test",
|
||||
|
||||
Reference in New Issue
Block a user