Commit Graph

14 Commits

Author SHA1 Message Date
Hagb
b58674f04c Fix dependencies conflict 2023-10-18 17:46:11 +08:00
Hagb
e13ece4db1 Use qemu-user >= 8.0.0 which fixes a memory leak bug
https://gitlab.com/qemu-project/qemu/-/issues/866

In docker-easyconnect, it was first mentioned in #128.
2023-07-26 15:16:46 +08:00
Hagb
940e82b532 Add /usr/sbin/dmidecode as a dummy command
A component of aTrust, /usr/share/sangfor/aTrust/resources/bin/dmidecode_processor_tool,
seems to search for and try to run dmidecode in /usr/{bin,sbin}.
Exactly, it runs `sh -c 'path-to-dmidecode -t processor'` periodically
(or it is called periodically). If there is no dmidecode command in
/usr/bin or /usr/sbin, it runs `sh -c '-t processor'` instead, which
throws the `sh: 1: -t: not found` spam in console.

This commit creates a symbolic link to /bin/false in /usr/sbin/dmidecode
to suppress the spam.
2023-07-19 06:02:37 +08:00
Hagb
3f1216e637 Add aTrust support (#198) 2023-07-16 01:57:35 +08:00
Hagb
676631a228 Refactor and prepare to add aTrust
- Change most of `EC` to `VPN` in the source code, since this project will not
  be only for EasyConnect
- Dehardcode
- Refactor for more than one type of Sangfor VPN
2023-07-16 01:51:01 +08:00
Hagb
59265bfd7d Make 7.6.7 default and support multi-arch build in github action
Resolve #99, #128, #258
2023-06-25 04:57:18 +08:00
Hagb
ea07ea9606 Merge branch 'master' into develop 2023-01-20 04:53:07 +08:00
Hagb
83671842b5 Use filesystem instead of pipe to swap EasyConnect zip
https://github.com/Hagb/docker-easyconnect/issues/25#issuecomment-1257099585
2022-09-25 10:31:10 +08:00
Hagb
dc5b8000ff Add support for EasyConnect deb package inside zip file
To add support for arm64 and mips64 version of EasyConnect in
https://github.com/Hagb/docker-easyconnect/issues/25#issuecomment-1233369467
2022-09-24 12:38:39 +08:00
Hagb
f533949090 Support non-amd64 deb package of EasyConnect
Since non-amd64 deb packages of EasyConnect are proved to exist
(https://github.com/Hagb/docker-easyconnect/issues/25#issuecomment-1233369467),
the deb package should not be assume to be amd64 and architecture
specific code should be rewritten:

- Add EC_HOST build argument to tell Dockerfile the architecture of
  EasyConnect package
- Whether to install cross toolchain and qemu-user and which package
  should be install, is determined by EC_HOST and the local architecture
  now, more specifically by build-scripts/get-echost-names.sh (no longer
  hard-code amd64 cross toolchain)
- fake-hwaddr.so should follow the architecture of the EC deb, so
  fake-hwaddr/Makefile uses CC envirnoment variable instead of
  hard-coded x86_64-linux-gnu-gcc as c compiler now
- qemu_args is removed now. It was used to pass LD_PRELOAD to foreign
  binaries under qemu-user, but now we pass LD_PRELOAD to the qemu
  wrapper and wrapper will pass the LD_PRELOAD to the simulated
  binaries
2022-09-24 08:52:32 +08:00
Hagb
890c19f4d8 Use official electron by default even in amd64 and i386
Electron from EasyConnect is observed to have a segfault in the latest
Debian bookworm.
2022-09-21 06:11:10 +08:00
Hagb
90bfb39f2b Correctly replace mirror url
fix https://github.com/Hagb/docker-easyconnect/pull/173#issuecomment-1250246566
2022-09-21 06:11:05 +08:00
Hagb
2fc81f4eaa Clean up build scripts 2022-09-20 10:44:43 +08:00
Hagb Green (Guo Junyu)
72cbfc2ccc Refactor dockerfiles and add support for non-amd64 GUI
- split common part of dockerfiles to shell scripts in build-scripts
  folder
- add support for non-amd64 GUI by replacing the electron binary with the
  native one
2022-03-21 02:32:19 +08:00