mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-10 02:48:33 +00:00
Compare commits
1 Commits
fix/macos-
...
use-cli-1.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c8c492855d |
@@ -172,7 +172,7 @@
|
|||||||
],
|
],
|
||||||
"arduino": {
|
"arduino": {
|
||||||
"arduino-cli": {
|
"arduino-cli": {
|
||||||
"version": "1.2.0"
|
"version": "1.3.1"
|
||||||
},
|
},
|
||||||
"arduino-fwuploader": {
|
"arduino-fwuploader": {
|
||||||
"version": "2.4.1"
|
"version": "2.4.1"
|
||||||
|
|||||||
@@ -1139,4 +1139,5 @@ export enum LibraryLocation {
|
|||||||
LIBRARY_LOCATION_PLATFORM_BUILTIN = 2,
|
LIBRARY_LOCATION_PLATFORM_BUILTIN = 2,
|
||||||
LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN = 3,
|
LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN = 3,
|
||||||
LIBRARY_LOCATION_UNMANAGED = 4,
|
LIBRARY_LOCATION_UNMANAGED = 4,
|
||||||
|
LIBRARY_LOCATION_PROFILE = 5,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8652,7 +8652,8 @@ proto.cc.arduino.cli.commands.v1.LibraryLocation = {
|
|||||||
LIBRARY_LOCATION_USER: 1,
|
LIBRARY_LOCATION_USER: 1,
|
||||||
LIBRARY_LOCATION_PLATFORM_BUILTIN: 2,
|
LIBRARY_LOCATION_PLATFORM_BUILTIN: 2,
|
||||||
LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN: 3,
|
LIBRARY_LOCATION_REFERENCED_PLATFORM_BUILTIN: 3,
|
||||||
LIBRARY_LOCATION_UNMANAGED: 4
|
LIBRARY_LOCATION_UNMANAGED: 4,
|
||||||
|
LIBRARY_LOCATION_PROFILE: 5
|
||||||
};
|
};
|
||||||
|
|
||||||
goog.object.extend(exports, proto.cc.arduino.cli.commands.v1);
|
goog.object.extend(exports, proto.cc.arduino.cli.commands.v1);
|
||||||
|
|||||||
@@ -8,5 +8,7 @@
|
|||||||
<true/>
|
<true/>
|
||||||
<key>com.apple.security.cs.disable-library-validation</key>
|
<key>com.apple.security.cs.disable-library-validation</key>
|
||||||
<true/>
|
<true/>
|
||||||
|
<key>com.apple.security.cs.allow-dyld-environment-variables</key>
|
||||||
|
<true/>
|
||||||
</dict>
|
</dict>
|
||||||
</plist>
|
</plist>
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
const path = require('node:path');
|
const path = require('node:path');
|
||||||
const fs = require('fs');
|
|
||||||
const webpack = require('webpack');
|
const webpack = require('webpack');
|
||||||
const TheiaNativeWebpackPlugin = require('@theia/native-webpack-plugin');
|
|
||||||
const frontend = require('./gen-webpack.config');
|
const frontend = require('./gen-webpack.config');
|
||||||
const backend = require('./gen-webpack.node.config');
|
const backend = require('./gen-webpack.node.config');
|
||||||
const {
|
const {
|
||||||
@@ -41,27 +39,6 @@ backend.config.entry['parcel-watcher'] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
// Override Theia native dependency bundler to assign stricter file permissions (chmod 755)
|
|
||||||
// https://github.com/eclipse-theia/theia/blob/9a52544fb4c1ea1d3d0d6bcbe106b97184279030/dev-packages/native-webpack-plugin/src/native-webpack-plugin.ts#L149
|
|
||||||
class NativeWebpackPlugin extends TheiaNativeWebpackPlugin {
|
|
||||||
// Override the method that writes/copies files
|
|
||||||
async copyExecutable(source, target) {
|
|
||||||
const targetDirectory = path.dirname(target);
|
|
||||||
await fs.promises.mkdir(targetDirectory, { recursive: true });
|
|
||||||
await fs.promises.copyFile(source, target);
|
|
||||||
await fs.promises.chmod(target, 0o755);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
backend.config.plugins.push(new NativeWebpackPlugin({
|
|
||||||
out: 'native',
|
|
||||||
trash: true,
|
|
||||||
ripgrep: true,
|
|
||||||
pty: true,
|
|
||||||
nativeBindings: {
|
|
||||||
drivelist: 'drivelist/build/Release/drivelist.node',
|
|
||||||
},
|
|
||||||
}));
|
|
||||||
|
|
||||||
// Use a customized backend main that can enable the file logger in bundled mode.
|
// Use a customized backend main that can enable the file logger in bundled mode.
|
||||||
backend.config.entry['main'] = require.resolve('./arduino-ide-backend-main.js');
|
backend.config.entry['main'] = require.resolve('./arduino-ide-backend-main.js');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user