Skip to content

Commit 0c5fff8

Browse files
Updated to build from source Needs work to tidy. todo later
1 parent 03b0240 commit 0c5fff8

File tree

1 file changed

+34
-9
lines changed

1 file changed

+34
-9
lines changed

cc.arduino.arduinoide.json

+34-9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
"runtime": "org.freedesktop.Platform",
66
"runtime-version": "21.08",
77
"sdk": "org.freedesktop.Sdk",
8+
"sdk-extensions": [
9+
"org.freedesktop.Sdk.Extension.node14"
10+
],
811
"command": "arduino-ide",
912
"separate-locales": false,
1013
"finish-args": [
@@ -20,6 +23,12 @@
2023
"--talk-name=org.freedesktop.secrets",
2124
"--talk-name=org.freedesktop.Notifications"
2225
],
26+
"build-options": {
27+
"append-path": "/usr/lib/sdk/node14/bin",
28+
"env": {
29+
"NPM_CONFIG_LOGLEVEL": "info"
30+
}
31+
},
2332

2433
"modules": [
2534
"shared-modules/libusb/libusb.json",
@@ -62,8 +71,28 @@
6271
{
6372
"name": "arduino-ide",
6473
"buildsystem": "simple",
74+
"build-options": {
75+
"build-args": [
76+
"--share=network"
77+
],
78+
"env": {
79+
"XDG_CACHE_HOME": "/run/build/arduino-ide/flatpak-node/cache",
80+
"npm_config_cache": "/run/build/arduino-ide/flatpak-node/npm-cache",
81+
"npm_config_nodedir": "/usr/lib/sdk/node14",
82+
"npm_config_no_save": "true",
83+
"npm_config_loglevel": "verbose",
84+
"npm_config_offline": "false",
85+
"YARN_DISABLE_SELF_UPDATE_CHECK": "true"
86+
}
87+
},
6588
"build-commands": [
66-
"mv ./arduino-ide /app/arduino-ide",
89+
"yarn --cwd ./build/arduino-ide-source/electron/packager/",
90+
"yarn --cwd ./build/arduino-ide-source/electron/packager/ package",
91+
"mv ./build/arduino-ide-source/electron/build/dist/*Linux_64bit.zip ./build/arduino-ide.zip",
92+
"unzip ./build/arduino-ide.zip -d ./build/arduino-ide/",
93+
"rm -f ./build/arduino-ide.zip",
94+
"mv ./build/arduino-ide/ /app/arduino-ide/",
95+
"rm -rf ./build/",
6796
"install -D arduino-ide.sh /app/bin/arduino-ide",
6897
"install -Dm644 cc.arduino.arduinoide.png /app/share/icons/hicolor/128x128/apps/cc.arduino.arduinoide.png",
6998
"install -Dm644 cc.arduino.arduinoide.appdata.xml /app/share/appdata/cc.arduino.arduinoide.appdata.xml",
@@ -87,14 +116,10 @@
87116
"path": "cc.arduino.arduinoide.png"
88117
},
89118
{
90-
"type": "archive",
91-
"dest-filename": "arduino-ide.zip",
92-
"dest": "arduino-ide",
93-
"only-arches": [
94-
"x86_64"
95-
],
96-
"url": "https://github.com/arduino/arduino-ide/releases/download/2.0.0-rc6/arduino-ide_2.0.0-rc6_Linux_64bit.zip",
97-
"sha256": "6c4a60d18d30895fe0de6872ca89b5404bf1a2874e32bf3d958a9e6a934e824f"
119+
"type": "git",
120+
"url": "https://github.com/arduino/arduino-ide.git",
121+
"tag": "2.0.0-rc6",
122+
"dest": "build/arduino-ide-source"
98123
}
99124
]
100125
}

0 commit comments

Comments
 (0)