Skip to content

Commit cff2a6f

Browse files
committed
replace "chrome-sandbox" included inside the AppImage with a symlink to /opt/google/chrome/chrome-sandbox
Signed-off-by: Günter Neiß <gneiss@web.de>
1 parent 6623dee commit cff2a6f

File tree

3 files changed

+26
-2
lines changed

3 files changed

+26
-2
lines changed
1.88 MB
Binary file not shown.

.github/workflows/LinuxBuild.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,26 @@ jobs:
5151
yarn --cwd electron-app package
5252
find / -iname "*.AppImage"
5353
cp /__w/arduino-ide/arduino-ide/electron-app/dist/*.AppImage .
54+
- name: Mod AppImage to use chrome-sandbox of local os
55+
run: |
56+
set -x
57+
set -v
58+
EXE=$(readlink -f *.AppImage)
59+
chmod a+x "${EXE}"
60+
mkdir t
61+
cd t
62+
"${EXE}" --appimage-extract
63+
cd squashfs-root/
64+
rm chrome-sandbox
65+
ln -s /opt/google/chrome/chrome-sandbox chrome-sandbox
66+
cd ..
67+
TOOL=".github/tools/appimagetool-x86_64_2019-05-01.AppImage"
68+
ARCH=x86_64 ${TOOL} squashfs-root
69+
rm -r squashfs-root/
70+
rm "${EXE}"
71+
mv *.AppImage ../
72+
cd ..
73+
rm -r t
5474
- name: Install gh and jq
5575
env:
5676
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,12 @@
33
### Preface
44

55
This repository is a fork of the official [Arduino IDE](https://github.com/arduino/arduino-ide).
6-
It seams that this project is currently inactive (2 Month no commit), because my PR [Order custom board option menus as defined in platform configuration](https://github.com/arduino/arduino-ide/pull/2717) ist still not merged.
7-
So this repo will generate only the AppImage whith my PR.
6+
It seams that this project is currently inactive (2 Month no commit).
7+
- My PR [Order custom board option menus as defined in platform configuration](https://github.com/arduino/arduino-ide/pull/2717) ist still not merged.
8+
- There is an additional BUG inside the original AppImage: It fails to run if not started with "--no-sandbxox" (on newer Linux systems).
9+
So this repo will generate only the AppImage that:
10+
- includes my PR
11+
- replaces the executable "chrome-sandbox" included inside the AppImage with a symlink to /opt/google/chrome/chrome-sandbox, that should be exist on most newer Linux systems.
812

913
### Download
1014

0 commit comments

Comments
 (0)