A computer-implemented method for compressing a source application, the source application being a computer program for accomplishing one or more task through invoking at least one invoked file by at least one invoking file, wherein an invoking file is an executable code file extracted from the source application, and wherein an invoked file is a code file that is extracted from the source application and is loaded by the invoking file during execution, the method comprising: compressing the at least one invoked file in the source application using a compression algorithm to form a compressed invoked file; modifying the at least one invoking file to form a modified invoking file, the modified invoking file being modified to invoke a decompression function file corresponding to the compression algorithm, the decompression function file being configured to decompress the compressed invoked file and load a decompressed invoked file; the method being characterised by further comprising: encapsulating the modified invoking file, the compressed invoked file, and the decompression function file to obtain a compressed application, wherein encapsulating the modified invoking file, the compressed invoked file, and the decompression function file to obtain a compressed application comprises: compressing the modified invoking file and replacing it to locations of the at least one invoking file before modification; and compressing the compressed invoked file and the decompression function file and adding them into the source application to obtain the compressed application. compressing the at least one invoked file in the source application using a compression algorithm to form a compressed invoked file; modifying the at least one invoking file to form a modified invoking file, the modified invoking file being modified to invoke a decompression function file corresponding to the compression algorithm, the decompression function file being configured to decompress the compressed invoked file and load a decompressed invoked file; the method being characterised by further comprising: encapsulating the modified invoking file, the compressed invoked file, and the decompression function file to obtain a compressed application, wherein encapsulating the modified invoking file, the compressed invoked file, and the decompression function file to obtain a compressed application comprises: compressing the modified invoking file and replacing it to locations of the at least one invoking file before modification; and compressing the compressed invoked file and the decompression function file and adding them into the source application to obtain the compressed application. encapsulating the modified invoking file, the compressed invoked file, and the decompression function file to obtain a compressed application, wherein encapsulating the modified invoking file, the compressed invoked file, and the decompression function file to obtain a compressed application comprises: compressing the modified invoking file and replacing it to locations of the at least one invoking file before modification; and compressing the compressed invoked file and the decompression function file and adding them into the source application to obtain the compressed application.