The invention relates to a domestic credential and credential
adaptation method and
system based on an ELCTRON framework, and the method comprises the following steps: firstly, carrying out the domestic reconstruction of a
Chromium rendering engine, and carrying out the optimization of the
instruction set characteristics of a domestic CPU; the Node.js source codes are recompiled through a domestic
compiler tool chain, it is ensured that all native modules can be correctly loaded on a target platform, and corresponding adjustment is carried out on parts related to underlying
system calling according to the characteristics of different domestic operating systems; comprehensively
carding the dependency relationship of the existing application, identifying the sources and functions of all third-party libraries, and performing
adaptation; adjusting a
hardware acceleration strategy according to support conditions of different GPUs, and adopting an optimized
software rendering scheme for a platform with an imperfect GPU driver; by adjusting rendering parameters of
Chromium, the optimal rendering effect under limited hardware resources is achieved; and
memory management optimization is carried out aiming at the multi-
process architecture of the
Electron. According to the invention, efficient, safe and stable operation of the
Electron application on various domestic PC terminals is realized.