CN104714788A - Method and device for automatically generating software installation package - Google Patents

Method and device for automatically generating software installation package Download PDF

Info

Publication number
CN104714788A
CN104714788A CN201310681907.4A CN201310681907A CN104714788A CN 104714788 A CN104714788 A CN 104714788A CN 201310681907 A CN201310681907 A CN 201310681907A CN 104714788 A CN104714788 A CN 104714788A
Authority
CN
China
Prior art keywords
compiling
path
file
link
editing machine
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310681907.4A
Other languages
Chinese (zh)
Other versions
CN104714788B (en
Inventor
王永鑫
李斌
罗程
叶礼伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310681907.4A priority Critical patent/CN104714788B/en
Publication of CN104714788A publication Critical patent/CN104714788A/en
Application granted granted Critical
Publication of CN104714788B publication Critical patent/CN104714788B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)
  • Devices For Executing Special Programs (AREA)

Abstract

The invention discloses a method and device for automatically generating a software installation package. The method and device are used for reducing manual repeated work in the generation process of the software installation package. The method includes the following steps that a path of a dynamic linkage editor is derived, the path of the dynamic linkage editor is defined as a user-defined environment variable representing the path of the dynamic linkage editor, and the path of the dynamic linkage editor is a system debugging folder path; object files are generated by executing commands of compiling and compiling linkage after cleaning, so that in the process of executing the commands of compiling and compiling linkage after cleaning, when the user-defined environment variable representing the path of the dynamic linkage editor is called, the dynamic linkage editor is called by having access to the system debugging folder path; the generated at least one object file is packaged to generate the software installation package which comprises a dynamic library and/or executable files.

Description

A kind of method that software installation kit generates automatically and device
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of method that software installation kit generates automatically and device.
Background technology
Along with popularizing of intelligent movable equipment, developer needs to develop for the application program of different operating system, the Mobile operating system of existing employing iOS(Apple) equipment in the installation kit of the application program Integrated Development Environment Xcode that mainly uses Apple to provide to developer complete generation.
Because Integrated Development Environment Xcode does not support to generate dynamic base, and most of software new construction need to generate dynamic base and/or executable file after compiling, therefore generate dynamic base, executable file after needing to use the newly-built various engineering compiling of plug-in unit iOSOpenDev of Xcode, the packing that the multiple dynamic base finally generated according to different engineering and/or executable file complete software installation kit generates.
But after installing iOSOpenDev plug-in unit, do not support to use the mode of script to compile existing engineering, link and generate dynamic base, the process also namely compile, linked can failure.And current software is the form of multi-process, many dynamic base mostly, therefore the engineering quantity of regular software is many, in the process generating software installation kit, need a large amount of artificial repetitive operation to carry out compiling, link, again copy copy file destination, after finally required file all being put into the file of a specific format, use packing to generate the software installation kit that finally can carry out installing, efficiency is lower.
Summary of the invention
In view of this, fundamental purpose of the present invention is to provide a kind of method and device that software installation kit generates automatically, with solve in prior art generate software installation kit process in need a large amount of artificial repetitive operation, the technical matters that efficiency is lower.
For solving the problem, technical scheme provided by the invention is as follows:
The method that software installation kit generates automatically, described method comprises:
Derive the path of dynamic link editing machine, and be a self-defined environmental variance representing dynamic link editing machine path by the path definition of described dynamic link editing machine, the path of described dynamic link editing machine is system debug folder path;
Perform compiling and remove the order generating object file of rear compiling link, to make in the process performing described compiling and compiling link order after removing, when calling the self-defined environmental variance representing dynamic link editing machine path, accessing described system debug folder path and calling described dynamic link editing machine;
By generate at least one described in file destination carry out packing generation software installation kit, described file destination comprises dynamic base and/or executable file.
Accordingly, the described order generating object file performing compiling and the rear compiling link of removing, comprising:
Perform compiling according to configuration parameter and remove the order generating object file of rear compiling link, described configuration parameter comprises project file path, file destination name, SDK (Software Development Kit) SDK version and compile mode, wherein, described compile mode is for generating debug version pattern.
Accordingly, before the order generating object file performing compiling and the rear compiling link of removing, described method also comprises:
Environmental variance pattern will be searched be set to search self-defined environmental variance pattern.
Accordingly, described by generate at least one described in file destination carry out packing generation software installation kit, comprising:
File destination described at least one that after obtaining execution compiling and removing, the order of compiling link generates;
File destination described at least one is copied in default file folder;
Packing is carried out to described default file folder and generates software installation kit.
Accordingly, described method also comprises:
Be arranged on the temporary folder performing and use in the process of described compiling and compiling link order after removing.
Accordingly, described method is realized by the mode of operation shell script.
The device that software installation kit generates automatically, described device comprises:
Lead-out unit, for deriving the path of dynamic link editing machine, and be a self-defined environmental variance representing dynamic link editing machine path by the path definition of described dynamic link editing machine, the path of described dynamic link editing machine is system debug folder path;
Compiling link unit, for performing compiling and removing the order generating object file of rear compiling link, to make in the process performing described compiling and compiling link order after removing, when calling the self-defined environmental variance representing dynamic link editing machine path, accessing described system debug folder path and calling described dynamic link editing machine;
Packaged unit, for by generate at least one described in file destination carry out packing generation software installation kit, described file destination comprises dynamic base and/or executable file.
Accordingly, described compiling link unit specifically for:
Perform compiling according to configuration parameter and remove the order generating object file of rear compiling link, described configuration parameter comprises project file path, file destination name, SDK (Software Development Kit) SDK version and compile mode, wherein, described compile mode is for generating debug version pattern.
Accordingly, described device also comprises:
First setting unit, is set to search self-defined environmental variance pattern for searching environmental variance pattern.
Accordingly, packaged unit comprises:
Obtain subelement, for obtain perform compiling and remove after compiling link order generate at least one described in file destination;
Replicon unit, for copying in default file folder by file destination described at least one;
Packing subelement, generates software installation kit for carrying out packing to described default file folder.
Accordingly, described device also comprises:
Second setting unit, for being arranged on the temporary folder performing and use in the process of described compiling and compiling link order after removing.
As can be seen here, the embodiment of the present invention has following beneficial effect:
By deriving the path of dynamic link editing machine, and the path of this dynamic link editing machine is set to self-defined environmental variance, with make project file compiling and compiling link process in, if use this self-defined environmental variance can call dynamic link editing machine by access system debugging file folder path, when the engineering quantity of software is more, each engineering all can both realize automatic compiling, link, finally the multiple file destinations generated can be carried out packing and generate software installation kit, the generative process of whole software installation kit no longer needs artificial repetitive operation, improve the efficiency that software installation kit generates.
Accompanying drawing explanation
Fig. 1 is the process flow diagram of the embodiment of the method one that in the embodiment of the present invention, software installation kit generates automatically;
Fig. 2 is the process flow diagram of the embodiment of the method two that in the embodiment of the present invention, software installation kit generates automatically;
Fig. 3 is the schematic diagram of the device embodiment that in the embodiment of the present invention, software installation kit generates automatically;
A kind of schematic diagram of terminal of Fig. 4 for providing in the embodiment of the present invention.
Embodiment
For enabling above-mentioned purpose of the present invention, feature and advantage become apparent more, are described in further detail the embodiment of the present invention below in conjunction with the drawings and specific embodiments.
The method that the software installation kit that the embodiment of the present invention provides generates automatically and device, for after using iOSOpenDev plug-in unit in prior art, need to adopt manually-operated mode to compile, link, when the engineering quantity of software is more, utilize the technical matters that the efficiency of the generation of the file destination after compiling software installation kit is comparatively low, under proposing that dynamic link editing machine is positioned over system debug folder path, derive the path of dynamic link editing machine as self-defined environmental variance, in compiling, in the process of link, when using the self-defined environmental variance representing dynamic link editing machine path, dynamic link editing machine can be called by access system debugging file folder path, automatically compiling is completed, link, generating object file, finally complete software installation kit to generate, in the process that whole software installation kit generates, automatically can be realized by script, avoid a large amount of artificial repetitive operation, thus improve the formation efficiency of software installation kit.
The angle of the device automatically generated from software installation kit is described by the embodiment of the present invention, and the device that this installation kit generates automatically can load in the terminal, and this terminal is specifically as follows panel computer, pocket computer on knee and desk-top computer etc.
Based on above-mentioned thought, shown in Figure 1, the embodiment of the method one that the software installation kit that the embodiment of the present invention provides generates automatically can comprise the following steps:
Step 101: the path of deriving dynamic link editing machine, and be a self-defined environmental variance representing dynamic link editing machine path by the path definition of dynamic link editing machine, the path of dynamic link editing machine is system debug folder path.
Dynamic link editing machine can be understood as compiling, the header file of link generation required for dynamic base, derive the path of dynamic link editing machine, compiler just can find the method how compiling and generate dynamic base, to guarantee successful com link carrying out compiling, in the process that links.
In specific implementation, under needing that dynamic link editing machine is positioned over system debug folder path (SYMROOT/Debug), so also namely the path of dynamic link editing machine is just the path of system debug file, conveniently use the path of dynamic link editing machine, can be an environmental variance by the path definition of dynamic link editing machine, then represent the path needing to use dynamic link editing machine in other programs follow-up if there is this self-defined environmental variance, the value in the path of dynamic link editing machine is then system debug folder path.
Step 102: perform compiling and remove the order generating object file of rear compiling link, to make in the process performing compiling and compiling link order after removing, when calling the self-defined environmental variance representing dynamic link editing machine path, dynamic link editing machine is called in access system debugging file folder path..
In some embodiments of the invention, before the order generating object file performing compiling and the rear compiling link of removing, the method that the software installation kit that the embodiment of the present invention provides generates automatically can also comprise:
Environmental variance pattern will be searched be set to search self-defined environmental variance pattern.
In the present embodiment, due to by the path definition of dynamic link editing machine in order to a self-defined environmental variance representing dynamic link editing machine path, in order to script interpreter can be resolved by self-defined environmental variance in the process of implementation, need just to search environmental variance pattern to be set to search self-defined environmental variance pattern, during to make to run in program operation process the self-defined environmental variance representing dynamic link editing machine path, the path of dynamic link editing machine can be successfully found also to be system debug folder path.
For compiling and compiling link order, because the source file in an engineering is a lot, it by type, function, module be placed in several catalogues respectively, therefore Makefile file can be called to make engineering can automatic compiling, the a series of rule of Makefile document definition is specified, which file needs first to compile, compiling after which file needs, and which file needs to recompilate etc.
Because apple official does not support that the engineering set up iOSOpenDev uses script to compile, link, can be compiled by compilation script to make the engineering using iOSOpenDev to set up, link, in embodiments of the present invention, by deriving the path of dynamic link editing machine, make in the process performing compiling and compiling link order after removing, when calling the self-defined environmental variance representing dynamic link editing machine path, dynamic link editing machine can be called in access system debugging file folder path, thus successfully compile, link generating object file, file destination can be dynamic base and/or executable file according to the difference of project file.
In some embodiments of the invention, after performing compiling and removing, the specific implementation of the order generating object file of compiling link can comprise:
Perform compiling according to configuration parameter and remove the order generating object file of rear compiling link, configuration parameter comprises project file path, file destination name, SDK (Software Development Kit) SDK version and compile mode, wherein, compile mode is for generating debug version pattern.
Performing compiling and after removing during the order of compiling link, can arrange configuration parameter simultaneously, to make compiling, link process execution is set by configuration parameter.
It should be noted that, under dynamic link editing machine is positioned over system debug folder path, in order to path can be pressed from both sides to call dynamic link editing machine by access system debugging file, need compile mode to be set to generate debug version (Debug) pattern, just can press from both sides path (SYMROOT/Debug) by access system debugging file, thus ensure to compile, link successfully.
Step 103: at least one file destination generated is carried out packing and generates software installation kit, file destination comprises dynamic base and/or executable file.
By the one or more file destinations generated through compiling, link, file destination can be dynamic base and/or executable file, carries out the software installation kit of packing needed for final generation.Software installation kit can be deb form, and deb form is Debian software package form, and file extent is called .deb, and APMB package information and bag content are generated software installation kit through packing.
Concrete, in some embodiments of the invention, the specific implementation of at least one file destination generated being carried out packing generation software installation kit can comprise:
At least one file destination that the order obtaining compiling link after performing compiling and removing generates;
At least one file destination is copied in default file folder;
Packing is carried out to default file folder and generates software installation kit.
Wherein, if software installation kit is deb form, then default file presss from both sides the form of also demand fulfillment deb software installation kit requirement, dpkg order finally can be used to pack and generate deb installation kit.
In addition, in some embodiments of the invention, the method that the software installation kit that the embodiment of the present invention provides generates automatically can also comprise:
Be arranged on the temporary folder performing and use in the process of compiling and compiling link order after removing.
Simultaneously, it should be noted that, the method that the software installation kit that the embodiment of the present invention provides generates automatically all can be realized by the mode running shell script, and shell script can in Mac OS(Apple Computers operating system) in control desk (Console) in run.
Shown in Figure 2, the embodiment of the method two that the software installation kit that the embodiment of the present invention provides generates automatically can comprise the following steps:
Step 201: the path of deriving dynamic link editing machine, and be a self-defined environmental variance representing dynamic link editing machine path by the path definition of dynamic link editing machine, the path of dynamic link editing machine is system debug folder path.
Step 202: environmental variance pattern will be searched and be set to search self-defined environmental variance pattern.
Step 203: perform compiling according to configuration parameter and remove the order generating object file of rear compiling link, configuration parameter comprises project file path, file destination name, SDK (Software Development Kit) SDK version and compile mode, wherein, compile mode is for generating debug version pattern, to make in the process performing compiling and compiling link order after removing, when calling the self-defined environmental variance representing dynamic link editing machine path, dynamic link editing machine is called in access system debugging file folder path
Step 204: at least one file destination of compiling and the order generation of compiling link after removing is copied in default file folder.
Step 205: packing is carried out to described default file folder and generates software installation kit.
Like this, in the engineering using iOSOPenDev to set up, also script can be utilized to carry out compiling link, concrete, can by deriving the path of dynamic link editing machine, and the path of this dynamic link editing machine is set to self-defined environmental variance, with make project file compiling and compiling link process in, if use this self-defined environmental variance can call dynamic link editing machine by access system debugging file folder path, when the engineering quantity of software is more, each engineering all can both realize automatic compiling, link, finally the multiple file destinations generated can be carried out packing and generate software installation kit, the generative process of whole software installation kit no longer needs artificial repetitive operation, improve the efficiency that software installation kit generates.
The compilation script of lower mask body binding key is described the method that the software installation kit provided in the embodiment of the present invention generates automatically.
Not the engineering using iOSOpenDev to set up, can carry out compiling by the compilation script of standard, link and generating object file, script is as $ XCODE_PATH clean install-project " ./XXXXX.xcodeproj " (project file path)-target XXXXX(file destination)-sdk $ SDKVERSION-configuration Release.But because apple official does not support that the engineering set up iOSOpenDev uses script to compile, link and generating object file, cause, in script operational process, occurring mistake, cause the failure of whole packing process.
Compilation script corresponding to the method that a kind of software installation kit that the embodiment of the present invention provides generates automatically can realize using script to compile, link and generating object file to the engineering using iOSOpenDev to set up, thus realizes software installation kit and automatically generate.In actual applications, concrete script can be following form:
export DYLD_FRAMEWORK_PATH="$SYMROOT/Debug"
Wherein, DYLD_FRAMEWORK_PATH is a self-defined environmental variance representing dynamic link editing machine path, and derive the path of dynamic link editing machine, the path of dynamic link editing machine is SYMROOT/Debug path.
/usr/bin/env-i
Utilize env command set environmental variance, environmental variance pattern will be searched and be set to search self-defined environmental variance pattern.
Xcodebuild clean install-project " ./XXXXX.xcodeproj " (project file path)-target XXXXX(file destination)-sdk $ SDKVERSION-configuration Debug
Compiling link is carried out after utilizing xcodebuild compiler directive and clean install order to remove, because derivation dynamic link editing machine path is under Debug path, so employ the mode generating debug version (-configuration Debug) in last configuration, thus complete compiling, link.
OBJROOT="../../buildtemp"
In addition, compiling temporary folder path also can be set.
Finally generate all required dynamic base and/or executable file, and under using script command to copy other resource file of itself and some to corresponding folder structure (form that deb mounting software bag requires), final utilization dpkg order generates deb software installation kit, completes the automatic generation of software installation kit.
Shown in Figure 3, the device embodiment that the software installation kit that the embodiment of the present invention provides generates automatically, can comprise:
Lead-out unit 301, for deriving the path of dynamic link editing machine, and be a self-defined environmental variance representing dynamic link editing machine path by the path definition of dynamic link editing machine, the path of dynamic link editing machine is system debug folder path.
Dynamic link editing machine can be understood as compiling, the header file of link generation required for dynamic base, derive the path of dynamic link editing machine, compiler just can find the method how compiling and generate dynamic base, to guarantee successful com link carrying out compiling, in the process that links.
In specific implementation, under needing that dynamic link editing machine is positioned over system debug folder path (SYMROOT/Debug), so also namely the path of dynamic link editing machine is just the path of system debug file, conveniently use the path of dynamic link editing machine, can be an environmental variance by the path definition of dynamic link editing machine, then represent the path needing to use dynamic link editing machine in other programs follow-up if there is this self-defined environmental variance, the value in the path of dynamic link editing machine is then system debug folder path.
Compiling link unit 302, for performing compiling and removing the order generating object file of rear compiling link, to make in the process performing compiling and compiling link order after removing, when calling the self-defined environmental variance representing dynamic link editing machine path, dynamic link editing machine is called in access system debugging file folder path.
In some embodiments of the invention, the software installation kit automatically generating device that the embodiment of the present invention provides can also comprise:
First setting unit, is set to search self-defined environmental variance pattern for searching environmental variance pattern.
In the present embodiment, due to by the path definition of dynamic link editing machine in order to a self-defined environmental variance representing dynamic link editing machine path, in order to script interpreter can be resolved by self-defined environmental variance in the process of implementation, need just to search environmental variance pattern to be set to search self-defined environmental variance pattern, during to make to run in program operation process the self-defined environmental variance representing dynamic link editing machine path, the path of dynamic link editing machine can be successfully found also to be system debug folder path.
For compiling and compiling link order, because the source file in an engineering is a lot, it by type, function, module be placed in several catalogues respectively, therefore Makefile file can be called to make engineering can automatic compiling, the a series of rule of Makefile document definition is specified, which file needs first to compile, compiling after which file needs, and which file needs to recompilate etc.
Because apple official does not support that the engineering set up iOSOpenDev uses script to compile, link, can be compiled by compilation script to make the engineering using iOSOpenDev to set up, link, in embodiments of the present invention, by deriving the path of dynamic link editing machine, make in the process performing compiling and compiling link order after removing, when calling the self-defined environmental variance representing dynamic link editing machine path, dynamic link editing machine can be called in access system debugging file folder path, thus successfully compile, link generating object file, file destination can be dynamic base and/or executable file according to the difference of project file.
In some embodiments of the invention, compiling link unit can be specifically for:
Perform compiling according to configuration parameter and remove the order generating object file of rear compiling link, configuration parameter comprises project file path, file destination name, SDK (Software Development Kit) SDK version and compile mode, wherein, compile mode is for generating debug version pattern.
Performing compiling and after removing during the order of compiling link, can arrange configuration parameter simultaneously, to make compiling, link process execution is set by configuration parameter.
It should be noted that, under dynamic link editing machine is positioned over system debug folder path, in order to path can be pressed from both sides to call dynamic link editing machine by access system debugging file, need compile mode to be set to generate debug version (Debug) pattern, just can press from both sides path (SYMROOT/Debug) by access system debugging file, thus ensure to compile, link successfully.
Packaged unit 303, generate software installation kit at least one file destination generated is carried out packing, file destination comprises dynamic base and/or executable file.
By the one or more file destinations generated through compiling, link, file destination can be dynamic base and/or executable file, carries out the software installation kit of packing needed for final generation.Software installation kit can be deb form, and deb form is Debian software package form, and file extent is called .deb, and APMB package information and bag content are generated software installation kit through packing.
Concrete, in some embodiments of the invention, packaged unit can comprise:
Obtain subelement, at least one file destination that the order for obtaining execution compiling and the rear compiling link of removing generates;
Replicon unit, for copying in default file folder by least one file destination;
Packing subelement, generates software installation kit for carrying out packing to default file folder.
Wherein, if software installation kit is deb form, then default file presss from both sides the form of also demand fulfillment deb software installation kit requirement, dpkg order finally can be used to pack and generate deb installation kit.
In addition, in some embodiments of the invention, the software installation kit automatically generating device that the embodiment of the present invention provides can also comprise:
Second setting unit, for being arranged on the temporary folder performing and use in the process of compiling and compiling link order after removing.
Like this, in the engineering using iOSOPenDev to set up, also script can be utilized to carry out compiling link, concrete, can by deriving the path of dynamic link editing machine, and the path of this dynamic link editing machine is set to self-defined environmental variance, with make project file compiling and compiling link process in, if use this self-defined environmental variance can call dynamic link editing machine by access system debugging file folder path, when the engineering quantity of software is more, each engineering all can both realize automatic compiling, link, finally the multiple file destinations generated can be carried out packing and generate software installation kit, the generative process of whole software installation kit no longer needs artificial repetitive operation, improve the efficiency that software installation kit generates.
Accordingly, the embodiment of the present invention also provides a kind of terminal, shown in Figure 4, can comprise:
Processor 401, storer 402, input media 403 and output unit 404.The quantity of the processor 401 in browser server can be one or more, for a processor in Fig. 4.In some embodiments of the invention, processor 401, storer 402, input media 403 are connected by bus or alternate manner with output unit 404, wherein, to be connected by bus in Fig. 4.
Storer 402 can be used for storing software program and module, and processor 401 is stored in software program and the module of storer 402 by running, thus performs various function application and the data processing of browser server.Storer 402 mainly can comprise storage program district and store data field, and wherein, storage program district can store operating system, application program etc. needed at least one function.In addition, storer 402 can comprise high-speed random access memory, can also comprise nonvolatile memory, such as at least one disk memory, flush memory device or other volatile solid-state parts.Input media 403 can be used for the numeral or the character information that receive input, and generation arranges with the user of browser server and function controls the input of relevant key signals.
Specifically in the present embodiment, processor 401 can according to following instruction, executable file corresponding for the process of one or more application program is loaded in storer 402, and is run the application program be stored in storer 402 by processor 401, thus realize various function:
Derive the path of dynamic link editing machine, and be a self-defined environmental variance representing dynamic link editing machine path by the path definition of described dynamic link editing machine, the path of described dynamic link editing machine is system debug folder path;
Perform compiling and remove the order generating object file of rear compiling link, to make in the process performing described compiling and compiling link order after removing, when calling the self-defined environmental variance representing dynamic link editing machine path, accessing described system debug folder path and calling described dynamic link editing machine;
By generate at least one described in file destination carry out packing generation software installation kit, described file destination comprises dynamic base and/or executable file.
Accordingly, the described order generating object file performing compiling and the rear compiling link of removing, comprising:
Perform compiling according to configuration parameter and remove the order generating object file of rear compiling link, described configuration parameter comprises project file path, file destination name, SDK (Software Development Kit) SDK version and compile mode, wherein, described compile mode is for generating debug version pattern.
Accordingly, before the order generating object file performing compiling and the rear compiling link of removing, also comprise:
Environmental variance pattern will be searched be set to search self-defined environmental variance pattern.
Accordingly, described by generate at least one described in file destination carry out packing generation software installation kit, comprising:
File destination described at least one that after obtaining execution compiling and removing, the order of compiling link generates;
File destination described at least one is copied in default file folder;
Packing is carried out to described default file folder and generates software installation kit.
Accordingly, also comprise:
Be arranged on the temporary folder performing and use in the process of described compiling and compiling link order after removing.
It should be noted that, in this instructions, each embodiment adopts the mode of going forward one by one to describe, and what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar portion mutually see.For system disclosed in embodiment or device, because it corresponds to the method disclosed in Example, so description is fairly simple, relevant part illustrates see method part.
Also it should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
The software module that the method described in conjunction with embodiment disclosed herein or the step of algorithm can directly use hardware, processor to perform, or the combination of the two is implemented.Software module can be placed in the storage medium of other form any known in random access memory (RAM), internal memory, ROM (read-only memory) (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field.
To the above-mentioned explanation of the disclosed embodiments, professional and technical personnel in the field are realized or uses the present invention.To be apparent for those skilled in the art to the multiple amendment of these embodiments, General Principle as defined herein can without departing from the spirit or scope of the present invention, realize in other embodiments.Therefore, the present invention can not be restricted to these embodiments shown in this article, but will meet the widest scope consistent with principle disclosed herein and features of novelty.

Claims (11)

1. the method that automatically generates of software installation kit, it is characterized in that, described method comprises:
Derive the path of dynamic link editing machine, and be a self-defined environmental variance representing dynamic link editing machine path by the path definition of described dynamic link editing machine, the path of described dynamic link editing machine is system debug folder path;
Perform compiling and remove the order generating object file of rear compiling link, to make in the process performing described compiling and compiling link order after removing, when calling the self-defined environmental variance representing dynamic link editing machine path, accessing described system debug folder path and calling described dynamic link editing machine;
By generate at least one described in file destination carry out packing generation software installation kit, described file destination comprises dynamic base and/or executable file.
2. method according to claim 1, is characterized in that, the described order generating object file performing compiling and the rear compiling link of removing, comprising:
Perform compiling according to configuration parameter and remove the order generating object file of rear compiling link, described configuration parameter comprises project file path, file destination name, SDK (Software Development Kit) SDK version and compile mode, wherein, described compile mode is for generating debug version pattern.
3. method according to claim 1, is characterized in that, before the order generating object file performing compiling and the rear compiling link of removing, described method also comprises:
Environmental variance pattern will be searched be set to search self-defined environmental variance pattern.
4. method according to claim 1, is characterized in that, described by generate at least one described in file destination carry out packing generation software installation kit, comprising:
File destination described at least one that after obtaining execution compiling and removing, the order of compiling link generates;
File destination described at least one is copied in default file folder;
Packing is carried out to described default file folder and generates software installation kit.
5. method according to claim 1, is characterized in that, described method also comprises:
Be arranged on the temporary folder performing and use in the process of described compiling and compiling link order after removing.
6. the method according to claim 1-5, is characterized in that, described method is that the mode by running shell script realizes.
7. the device that automatically generates of software installation kit, it is characterized in that, described device comprises:
Lead-out unit, for deriving the path of dynamic link editing machine, and be a self-defined environmental variance representing dynamic link editing machine path by the path definition of described dynamic link editing machine, the path of described dynamic link editing machine is system debug folder path;
Compiling link unit, for performing compiling and removing the order generating object file of rear compiling link, to make in the process performing described compiling and compiling link order after removing, when calling the self-defined environmental variance representing dynamic link editing machine path, accessing described system debug folder path and calling described dynamic link editing machine;
Packaged unit, for by generate at least one described in file destination carry out packing generation software installation kit, described file destination comprises dynamic base and/or executable file.
8. device according to claim 7, is characterized in that, described compiling link unit specifically for:
Perform compiling according to configuration parameter and remove the order generating object file of rear compiling link, described configuration parameter comprises project file path, file destination name, SDK (Software Development Kit) SDK version and compile mode, wherein, described compile mode is for generating debug version pattern.
9. device according to claim 7, is characterized in that, described device also comprises:
First setting unit, is set to search self-defined environmental variance pattern for searching environmental variance pattern.
10. device according to claim 7, is characterized in that, packaged unit comprises:
Obtain subelement, for obtain perform compiling and remove after compiling link order generate at least one described in file destination;
Replicon unit, for copying in default file folder by file destination described at least one;
Packing subelement, generates software installation kit for carrying out packing to described default file folder.
11. devices according to claim 7, is characterized in that, described device also comprises:
Second setting unit, for being arranged on the temporary folder performing and use in the process of described compiling and compiling link order after removing.
CN201310681907.4A 2013-12-12 2013-12-12 A kind of method and device that software installation packet automatically generates Active CN104714788B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310681907.4A CN104714788B (en) 2013-12-12 2013-12-12 A kind of method and device that software installation packet automatically generates

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310681907.4A CN104714788B (en) 2013-12-12 2013-12-12 A kind of method and device that software installation packet automatically generates

Publications (2)

Publication Number Publication Date
CN104714788A true CN104714788A (en) 2015-06-17
CN104714788B CN104714788B (en) 2018-12-11

Family

ID=53414167

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310681907.4A Active CN104714788B (en) 2013-12-12 2013-12-12 A kind of method and device that software installation packet automatically generates

Country Status (1)

Country Link
CN (1) CN104714788B (en)

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105867959A (en) * 2015-12-01 2016-08-17 乐视致新电子科技(天津)有限公司 Binary file integration method and device
CN106776266A (en) * 2015-11-25 2017-05-31 腾讯科技(深圳)有限公司 The collocation method and terminal device of testing tool
CN107038352A (en) * 2016-02-03 2017-08-11 上海思立微电子科技有限公司 Intranet security access method, device and terminal
CN107659468A (en) * 2017-10-10 2018-02-02 深圳市吉祥腾达科技有限公司 A kind of method of testing of Router Security reliability
WO2018036322A1 (en) * 2016-08-22 2018-03-01 腾讯科技(深圳)有限公司 Method and device for generating application installation package, and storage medium
CN107918583A (en) * 2016-10-09 2018-04-17 腾讯科技(深圳)有限公司 A kind of script dynamic modulation, device and terminal
CN108021415A (en) * 2017-12-30 2018-05-11 有米科技股份有限公司 Automatic packaging method, apparatus, computer equipment and storage medium
CN109101244A (en) * 2018-07-20 2018-12-28 珠海宏桥高科技有限公司 A kind of ios system integration automatic packaging method
CN109298856A (en) * 2017-07-19 2019-02-01 北京国双科技有限公司 The method and apparatus of editing machine edition compatibility
CN109491664A (en) * 2018-11-08 2019-03-19 腾讯科技(深圳)有限公司 Generation method, device, equipment and the storage medium of iOS application program
CN109947430A (en) * 2019-03-26 2019-06-28 山东浪潮通软信息科技有限公司 A kind of code compilation Core Generator based on on-the-flier compiler and a kind of on-the-flier compiler method
CN110083362A (en) * 2019-03-28 2019-08-02 中至数据集团股份有限公司 Document handling method, system, readable storage medium storing program for executing and equipment
CN110471663A (en) * 2018-05-11 2019-11-19 杭州海康威视数字技术股份有限公司 A kind of code compiling method, device and electronic equipment
CN110825429A (en) * 2019-11-13 2020-02-21 中孚安全技术有限公司 Web project packaging method and system
CN113741922A (en) * 2021-11-02 2021-12-03 苏州浪潮智能科技有限公司 Installation file generation method, program installation method, installation file generation device, program installation device, computer equipment and medium
CN114020607A (en) * 2021-10-26 2022-02-08 苏州浪潮智能科技有限公司 BMC (baseboard management controller) debugging method and device and computer equipment
CN116661904A (en) * 2023-07-27 2023-08-29 中电科申泰信息科技有限公司 Device and method for packaging AppImage application software based on Shenwei platform

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622211A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for application development and device
CN102821066A (en) * 2012-07-30 2012-12-12 苏州阔地网络科技有限公司 Information processing method
CN103092624A (en) * 2013-01-25 2013-05-08 互动在线(北京)科技有限公司 Content module development method and application (App) generation method based on cloud services
CN103345394A (en) * 2013-07-01 2013-10-09 邱雨石 Method for rapidly making application software of native mobile phones
CN103365632A (en) * 2012-03-26 2013-10-23 联想(北京)有限公司 Data module and method and equipment for generating data module

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102622211A (en) * 2011-01-27 2012-08-01 腾讯科技(深圳)有限公司 Method for application development and device
CN103365632A (en) * 2012-03-26 2013-10-23 联想(北京)有限公司 Data module and method and equipment for generating data module
CN102821066A (en) * 2012-07-30 2012-12-12 苏州阔地网络科技有限公司 Information processing method
CN103092624A (en) * 2013-01-25 2013-05-08 互动在线(北京)科技有限公司 Content module development method and application (App) generation method based on cloud services
CN103345394A (en) * 2013-07-01 2013-10-09 邱雨石 Method for rapidly making application software of native mobile phones

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ALEXANDER: "Xcode 4-command line target with initial setup", 《HTTPS://STACKOVERFLOW.COM/QUESTIONS/9720304/XCODE­4­COMMAND­LINE­TARGET­WITH­INITIAL­ SETUP》 *

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776266A (en) * 2015-11-25 2017-05-31 腾讯科技(深圳)有限公司 The collocation method and terminal device of testing tool
CN105867959A (en) * 2015-12-01 2016-08-17 乐视致新电子科技(天津)有限公司 Binary file integration method and device
CN107038352A (en) * 2016-02-03 2017-08-11 上海思立微电子科技有限公司 Intranet security access method, device and terminal
WO2018036322A1 (en) * 2016-08-22 2018-03-01 腾讯科技(深圳)有限公司 Method and device for generating application installation package, and storage medium
US10754633B2 (en) 2016-08-22 2020-08-25 Tencent Technology (Shenzhen) Company Limited Application installation package generation method and apparatus, and storage medium
CN107918583A (en) * 2016-10-09 2018-04-17 腾讯科技(深圳)有限公司 A kind of script dynamic modulation, device and terminal
CN109298856A (en) * 2017-07-19 2019-02-01 北京国双科技有限公司 The method and apparatus of editing machine edition compatibility
CN107659468A (en) * 2017-10-10 2018-02-02 深圳市吉祥腾达科技有限公司 A kind of method of testing of Router Security reliability
CN108021415A (en) * 2017-12-30 2018-05-11 有米科技股份有限公司 Automatic packaging method, apparatus, computer equipment and storage medium
CN110471663A (en) * 2018-05-11 2019-11-19 杭州海康威视数字技术股份有限公司 A kind of code compiling method, device and electronic equipment
CN110471663B (en) * 2018-05-11 2024-01-02 杭州海康威视数字技术股份有限公司 Code compiling method and device and electronic equipment
CN109101244A (en) * 2018-07-20 2018-12-28 珠海宏桥高科技有限公司 A kind of ios system integration automatic packaging method
CN109491664B (en) * 2018-11-08 2021-03-26 腾讯科技(深圳)有限公司 iOS application program generation method, device, equipment and storage medium
CN109491664A (en) * 2018-11-08 2019-03-19 腾讯科技(深圳)有限公司 Generation method, device, equipment and the storage medium of iOS application program
CN109947430A (en) * 2019-03-26 2019-06-28 山东浪潮通软信息科技有限公司 A kind of code compilation Core Generator based on on-the-flier compiler and a kind of on-the-flier compiler method
CN110083362A (en) * 2019-03-28 2019-08-02 中至数据集团股份有限公司 Document handling method, system, readable storage medium storing program for executing and equipment
CN110825429A (en) * 2019-11-13 2020-02-21 中孚安全技术有限公司 Web project packaging method and system
CN114020607A (en) * 2021-10-26 2022-02-08 苏州浪潮智能科技有限公司 BMC (baseboard management controller) debugging method and device and computer equipment
CN114020607B (en) * 2021-10-26 2024-02-13 苏州浪潮智能科技有限公司 BMC debugging method and device and computer equipment
CN113741922A (en) * 2021-11-02 2021-12-03 苏州浪潮智能科技有限公司 Installation file generation method, program installation method, installation file generation device, program installation device, computer equipment and medium
CN116661904A (en) * 2023-07-27 2023-08-29 中电科申泰信息科技有限公司 Device and method for packaging AppImage application software based on Shenwei platform
CN116661904B (en) * 2023-07-27 2023-10-13 中电科申泰信息科技有限公司 Device and method for packaging AppImage application software based on Shenwei platform

Also Published As

Publication number Publication date
CN104714788B (en) 2018-12-11

Similar Documents

Publication Publication Date Title
CN104714788A (en) Method and device for automatically generating software installation package
CN111090433B (en) Data processing method, device and storage medium
CN104298534B (en) Programmed method and device based on Lua language
CN105224370A (en) A kind of method and apparatus of loading ELF document
CN110083360A (en) A kind of Compilation Method of application code, device, equipment and storage medium
CN104881330A (en) Multi-process data sharing method and device
CN108829465B (en) Local dynamic loading system and method based on direct read-write FLASH
CN105630557A (en) Hotfix method and device
CN103218428B (en) A kind of dynamic link method and system
CN103077038B (en) The method of dynamic generation and compiling .NET project
CN104391692A (en) Object-oriented programming method for reading and writing PSD-BPA data file
CN102364433B (en) Method for realizing Wine construction tool transplanting on ARM (Advanced RISC Machines) processor
CN115756451A (en) Method, device, equipment and storage medium for reusing multi-project code file
CN104102581A (en) Method and device for implementing unit testing
CN103645888A (en) System and method for automatically building operation system
US10445074B2 (en) Method of optimally compiling PLC command
CN101944061B (en) Method and device for debugging codes
CN104991810A (en) Method and processing system for automatically adding APK into Android system
CN104484207A (en) Mirror image upgrading method for switch, linux operation system and switch
CN105005497A (en) Method and apparatus for calling local function in Java card virtual machine
CN111367512B (en) Method and device for creating Android library module dependency relationship in application development
CN107391099B (en) Resource preprocessing method and device
Lieberherr et al. Experience with a graph-based propagation programming tool
CN106897049A (en) The packaging method and device of a kind of installation kit
CN105335230A (en) Service processing method and apparatus

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant