CN104714788B - A kind of method and device that software installation packet automatically generates - Google Patents

A kind of method and device that software installation packet automatically generates Download PDF

Info

Publication number
CN104714788B
CN104714788B CN201310681907.4A CN201310681907A CN104714788B CN 104714788 B CN104714788 B CN 104714788B CN 201310681907 A CN201310681907 A CN 201310681907A CN 104714788 B CN104714788 B CN 104714788B
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.)
Active
Application number
CN201310681907.4A
Other languages
Chinese (zh)
Other versions
CN104714788A (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 kind of method and devices that software installation packet automatically generates, for reducing the artificial repetitive operation in software installation packet generating process, this method comprises: the path of export dynamic link editing machine, and the path definition of dynamic link editing machine is represented to the customized environmental variance in dynamic link editing machine path for one, the path of dynamic link editing machine is system debug folder path;The order of compiling link generates file destination after executing compiling and removing, so that during compiling link order after executing compiling and removing, when calling represents the customized environmental variance in dynamic link editing machine path, access system debug folder path calls dynamic link editing machine;At least one file destination of generation be packaged and generates software installation packet, file destination includes dynamic base and/or executable file.

Description

A kind of method and device that software installation packet automatically generates
Technical field
The present invention relates to field of computer technology, and in particular to a kind of method and device that software installation packet automatically generates.
Background technique
With popularizing for intelligent movable equipment, developer needs to develop the application program for being directed to different operating system, existing Using the Mobile operating system of iOS(Apple Inc.) equipment in the installation kit of application program mainly use Apple Inc. to exploitation The Integrated Development Environment Xcode that person provides completes to generate.
Since Integrated Development Environment Xcode does not support to generate dynamic base, and needed after most of software new construction and compiling Generate dynamic base and/or executable file, it is therefore desirable to create various engineering compilings using the plug-in unit iOSOpenDev of Xcode Dynamic base, executable file are generated afterwards, and the multiple dynamic bases and/or executable file finally generated according to different engineerings are completed soft The packing of part installation kit generates.
But it after installation iOSOpenDev plug-in unit, does not support to be compiled existing engineering using the mode of script, link And dynamic base is generated, namely the process of compiling, link will fail.And current software is multi-process, more dynamic bases mostly Form, therefore the engineering quantity of regular software is relatively more, during generating software installation packet, needs a large amount of artificial repetition Sex work is compiled, links, copying duplication file destination again, finally required file is all put into the text of a specific format After part folder, using the software installation packet that generates and can finally be installed is packaged, efficiency is lower.
Summary of the invention
In view of this, the main object of the present invention is to provide a kind of method and device that software installation packet automatically generates, with It solves to need a large amount of artificial repetitive operations during generating software installation packet in the prior art, the lower technology of efficiency is asked Topic.
To solve the above problems, technical solution provided by the invention is as follows:
A kind of method that software installation packet automatically generates, which comprises
The path of dynamic link editing machine is exported, and is that a representative is dynamic by the path definition of the dynamic link editing machine The customized environmental variance in state Linkage Editor path, the path of the dynamic link editing machine are system debug file road Diameter;
The order for executing compiling link after compiling and removing generates file destination, so that in the execution compiling and clearly During except rear compiling link order, when calling represents the customized environmental variance in dynamic link editing machine path, access The system debug folder path calls the dynamic link editing machine;
At least one described file destination of generation be packaged and generates software installation packet, the file destination includes dynamic State library and/or executable file.
Correspondingly, the order of compiling link generates file destination after the execution compiling and removing, comprising:
The order of compiling link generates file destination, the configuration parameter after executing compiling according to configuration parameter and remove Including project file path, file destination name, Software Development Kit SDK version and compiling mode, wherein the compiling side Formula is to generate this mode of debugging version.
Correspondingly, the method is also before the order of compiling link generates file destination after executing compiling and removing Include:
It is to search customized environmental variance mode that environmental variance mode setting, which will be searched,.
Correspondingly, described carry out at least one described file destination of generation to be packaged generation software installation packet, comprising:
Obtain at least one described file destination that the order of compiling link after executing compiling and removing generates;
At least one described file destination is copied in default file folder;
Default file folder be packaged and generates software installation packet.
Correspondingly, the method also includes:
The temporary folder used during compiling link order after executing the compiling and removing is set.
Correspondingly, the method is realized by way of running shell script.
A kind of device that software installation packet automatically generates, described device include:
Lead-out unit is determined for exporting the path of dynamic link editing machine, and by the path of the dynamic link editing machine Justice represents the customized environmental variance in dynamic link editing machine path for one, and the path of the dynamic link editing machine is system Debugging file presss from both sides path;
Compiling link unit, the order for compiling link after executing compiling and removing generate file destination, so that After executing the compiling and removing during compiling link order, making by oneself for dynamic link editing machine path is represented calling When adopted environmental variance, accesses the system debug folder path and call the dynamic link editing machine;
Packaged unit generates software installation packet for be packaged at least one the described file destination generated, described File destination includes dynamic base and/or executable file.
Correspondingly, the compiling link unit is specifically used for:
The order of compiling link generates file destination, the configuration parameter after executing compiling according to configuration parameter and remove Including project file path, file destination name, Software Development Kit SDK version and compiling mode, wherein the compiling side Formula is to generate this mode of debugging version.
Correspondingly, described device further include:
First setting unit searches customized environmental variance mode for that will search environmental variance mode setting.
Correspondingly, packaged unit includes:
Acquisition subelement, for described at least one of the order generation of compiling link after obtaining execution compiling and removing File destination;
Subelement is replicated, for copying at least one described file destination in default file folder;
It is packaged subelement, generates software installation packet for be packaged to default file folder.
Correspondingly, described device further include:
Second setting unit uses during compiling link order after executing the compiling and removing for being arranged Temporary folder.
It can be seen that the embodiment of the present invention has the following beneficial effects:
By exporting the path of dynamic link editing machine, and customized ring is set by the path of the dynamic link editing machine Border variable, so that project file is during compiling and compiling link, if using the customized environmental variance can be with It is called by access system debug folder path to dynamic link editing machine, when the engineering quantity of software is more, Mei Gegong Cheng Jun can realize automatic compiling, link, may finally carry out multiple file destinations of generation to be packaged generation software installation Packet, the generating process of whole software installation packets no longer need artificial repetitive operation, improve the efficiency of software installation packet generation.
Detailed description of the invention
Fig. 1 is the flow chart for the embodiment of the method one that software installation packet automatically generates in the embodiment of the present invention;
Fig. 2 is the flow chart for the embodiment of the method two that software installation packet automatically generates in the embodiment of the present invention;
Fig. 3 is the schematic diagram for the Installation practice that software installation packet automatically generates in the embodiment of the present invention;
Fig. 4 is a kind of schematic diagram of the terminal provided in the embodiment of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing and specific real Mode is applied to be described in further detail the embodiment of the present invention.
The method and device that software installation packet provided in an embodiment of the present invention automatically generates is to be directed to use in the prior art After iOSOpenDev plug-in unit, need to be compiled, link using manually-operated mode, when the engineering quantity of software is more, Using the more low technical problem of the efficiency of the file destination generation software installation packet after compiling, dynamic link is edited in proposition Device is placed under system debug folder path, is exported the path of dynamic link editing machine as customized environmental variance, is being compiled During translating, linking, when using the customized environmental variance for representing dynamic link editing machine path, access can be passed through System debug folder path calls dynamic link editing machine, is automatically performed compiling, link, generates file destination, is finally completed Software installation packet generates, and during whole software installation packets generate, can be realized automatically by scripting language, avoids big Artificial repetitive operation is measured, to improve the formation efficiency of software installation packet.
The angle of the device automatically generated from software installation packet is described the embodiment of the present invention, which gives birth to automatically At device can load in the terminal, which is specifically as follows tablet computer, pocket computer on knee and desk-top calculating Machine etc..
Shown in Figure 1 based on above-mentioned thought, the method that software installation packet provided in an embodiment of the present invention automatically generates is real Applying example one may comprise steps of:
Step 101: the path of export dynamic link editing machine, and be a generation by the path definition of dynamic link editing machine The customized environmental variance in table dynamic link editing machine path, the path of dynamic link editing machine are system debug file road Diameter.
Dynamic link editing machine can be understood as compiling, link generates header file required for dynamic base, export dynamic chain The path of editing machine is connect, compiler can find the side for how compiling and generating dynamic base during being compiled, linking Method, to guarantee successful com link.
In the concrete realization, it needs dynamic link editing machine being placed in (SYMROOT/ under system debug folder path Debug), then namely dynamic link editing machine path be just system debug file path, for convenience using dynamic The path definition of dynamic link editing machine can be an environmental variance, in other subsequent programs by the path of Linkage Editor The path needed using dynamic link editing machine, the road of dynamic link editing machine are then represented if there is the customized environmental variance The value of diameter is then system debug folder path.
Step 102: execute compiling and remove after compiling link order generate file destination so that execute compiling with And after removing during compiling link order, when calling represents the customized environmental variance in dynamic link editing machine path, It accesses system debug folder path and calls dynamic link editing machine..
In some embodiments of the invention, the order of compiling link generates file destination after executing compiling and removing Before, the method that software installation packet provided in an embodiment of the present invention automatically generates can also include:
It is to search customized environmental variance mode that environmental variance mode setting, which will be searched,.
In the present embodiment, since the path definition of dynamic link editing machine is represented dynamic link editing machine for one The customized environmental variance in path needs in order to which script interpreter can be parsed in the process of implementation with customized environmental variance To will search environmental variance mode setting is to search customized environmental variance mode, so as to encounter generation in program operation process When the customized environmental variance in table dynamic link editing machine path, the path of dynamic link editing machine can be successfully found namely be Debugging file of uniting presss from both sides path.
For compiling and compiling link order, since there are many source file in an engineering, by type, function Can, module be individually placed in several catalogues, therefore Makefile file can be called so that engineering can compile automatically, The a series of rule of Makefile document definition is specified, which file needs first to compile, which file compiles after needing, which A little files need recompility etc..
Since apple official does not support the engineering established to iOSOpenDev to be compiled, link using script, in order to make It can be compiled in the engineering established using iOSOpenDev, be linked by compilation script, in embodiments of the present invention, passed through The path for exporting dynamic link editing machine makes calling generation during compiling link order after executing compiling and removing When the customized environmental variance in table dynamic link editing machine path, accessible system debug folder path is called to dynamic chain Editing machine is connect, to successfully be compiled, link generation file destination, file destination can be according to the difference of project file State library and/or executable file.
In some embodiments of the invention, the order of compiling link generates file destination after executing compiling and removing Specific implementation may include:
The order of compiling link generates file destination after executing compiling according to configuration parameter and remove, and configuration parameter includes Project file path, file destination name, Software Development Kit SDK version and compiling mode, wherein compiling mode is to generate Debug version.
In the order of compiling link after executing compiling and removing, configuration parameter can be configured simultaneously, so that Compiling, link process are executed by the setting of configuration parameter.
It should be noted that since dynamic link editing machine is placed under system debug folder path, in order to visit System debug folder path is asked to call dynamic link editing machine, needs to compile mode and is set as generating debugging version (Debug) mode, the accessible system debug folder path (SYMROOT/Debug) of, to guarantee to compile, be linked into Function.
Step 103: at least one file destination of generation being carried out to be packaged generation software installation packet, file destination includes dynamic State library and/or executable file.
The one or more file destinations that will be generated by compiling, link, file destination can be dynamic base and/or can hold Style of writing part carries out packing and ultimately generates required software installation packet.Software installation packet can be deb format, and deb format is APMB package information and packet content are generated software installation by being packaged by Debian software package format, the entitled .deb of file extent Packet.
Specifically, in some embodiments of the invention, it is soft that at least one file destination of generation is carried out packing generation The specific implementation of part installation kit may include:
Obtain at least one file destination that the order of compiling link after executing compiling and removing generates;
At least one file destination is copied in default file folder;
Default file folder be packaged and generates software installation packet.
Wherein, if software installation packet is deb format, default file folder is also required to meet deb software installation packet requirement Format, may finally use dpkg order be packaged generation deb installation kit.
In addition, in some embodiments of the invention, the side that software installation packet provided in an embodiment of the present invention automatically generates Method can also include:
The temporary folder used during compiling link order after executing compiling and removing is set.
Simultaneously, it should be noted that the method that software installation packet provided in an embodiment of the present invention automatically generates can lead to Cross operation shell script mode realize that shell script can be in Mac OS(Apple Computers operating system) in console (Console) operation in.
Shown in Figure 2, the embodiment of the method two that software installation packet provided in an embodiment of the present invention automatically generates can wrap Include following steps:
Step 201: the path of export dynamic link editing machine, and be a generation by the path definition of dynamic link editing machine The customized environmental variance in table dynamic link editing machine path, the path of dynamic link editing machine are system debug file road Diameter.
Step 202: will search environmental variance mode setting is to search customized environmental variance mode.
Step 203: the order of compiling link generates file destination, configuration after executing compiling according to configuration parameter and remove Parameter includes project file path, file destination name, Software Development Kit SDK version and compiling mode, wherein compiling side Formula is to generate this mode of debugging version, so as to represent during compiling link order after executing compiling and removing calling When the customized environmental variance in dynamic link editing machine path, access system debug folder path calls dynamic link editing machine
Step 204: at least one file destination that the order of compiling link after compiling and removing generates being copied to pre- If in file.
Step 205: default file folder being carried out to be packaged generation software installation packet.
In this way, also can use script in the engineering established using iOSOPenDev and be compiled link, specifically, can To be set as customized environment change by the path of export dynamic link editing machine, and by the path of the dynamic link editing machine Amount, so that project file is during compiling and compiling link, if using the customized environmental variance that can pass through It accesses system debug folder path to call to dynamic link editing machine, when the engineering quantity of software is more, each engineering is equal It can realize automatic compiling, link, multiple file destinations of generation may finally be carried out being packaged generation software installation packet, entirely The generating process of portion's software installation packet no longer needs artificial repetitive operation, improves the efficiency of software installation packet generation.
The compilation script of lower mask body binding key automatically generates the software installation packet provided in the embodiment of the present invention Method is illustrated.
It is not the engineering established using iOSOpenDev, can be compiled, be linked simultaneously by the compilation script of standard Generate file destination, script such as: $ XCODE_PATH clean install-project " ./XXXXX.xcodeproj " (engineering File path)-target XXXXX(file destination)-sdk $ SDKVERSION-configuration Release.But by It does not support the engineering established to iOSOpenDev that file destination is compiled, linked and generated using script in apple official, leads It causes mistake occur in script operational process, entire packing process is caused to fail.
A kind of corresponding compilation script of method that software installation packet automatically generates provided in an embodiment of the present invention may be implemented It uses script to be compiled, link the engineering for using iOSOpenDev to establish and generates file destination, to realize that software is pacified Dress packet automatically generates.In practical applications, specific script can be following form:
export DYLD_FRAMEWORK_PATH="$SYMROOT/Debug"
Wherein, DYLD_FRAMEWORK_PATH is the customized environmental variance for representing dynamic link editing machine path, The path of dynamic link editing machine is exported, the path of dynamic link editing machine is the path SYMROOT/Debug.
/usr/bin/env-i
It is set using env order, will search environmental variance mode setting is to search customized environmental variance mould Formula.
Xcodebuild clean install-project " ./XXXXX.xcodeproj " (project file path)- Target XXXXX(file destination)-sdk $ SDKVERSION-configuration Debug
Compiling link is carried out after removing using xcodebuild compiler directive and clean install order, due to leading Out dynamic Linkage Editor path be under the path Debug, so used in last configuration generation debugging version (- Configuration Debug) mode, thus complete compiling, link.
OBJROOT="../../buildtemp"
Alternatively, it is also possible to which compiling temporary folder path is arranged.
Ultimately produce it is all required for dynamic bases and/or executable file, and using script command by itself and it is some its His resource file copies under corresponding folder structure (deb installs the format that software package requires) to, is finally ordered using dpkg It enables and generates deb software installation packet, complete automatically generating for software installation packet.
Installation practice shown in Figure 3, that software installation packet provided in an embodiment of the present invention automatically generates, can wrap It includes:
Lead-out unit 301, for exporting the path of dynamic link editing machine, and by the path definition of dynamic link editing machine The customized environmental variance in dynamic link editing machine path is represented for one, the path of dynamic link editing machine is system debug text Part presss from both sides path.
Dynamic link editing machine can be understood as compiling, link generates header file required for dynamic base, export dynamic chain The path of editing machine is connect, compiler can find the side for how compiling and generating dynamic base during being compiled, linking Method, to guarantee successful com link.
In the concrete realization, it needs dynamic link editing machine being placed in (SYMROOT/ under system debug folder path Debug), then namely dynamic link editing machine path be just system debug file path, for convenience using dynamic The path definition of dynamic link editing machine can be an environmental variance, in other subsequent programs by the path of Linkage Editor The path needed using dynamic link editing machine, the road of dynamic link editing machine are then represented if there is the customized environmental variance The value of diameter is then system debug folder path.
Compiling link unit 302, the order for compiling link after executing compiling and removing generate file destination, so that During compiling link order after executing compiling and removing, the customized of dynamic link editing machine path is represented calling When environmental variance, access system debug folder path calls dynamic link editing machine.
In some embodiments of the invention, software installation packet automatically generating device provided in an embodiment of the present invention can be with Include:
First setting unit searches customized environmental variance mode for that will search environmental variance mode setting.
In the present embodiment, since the path definition of dynamic link editing machine is represented dynamic link editing machine for one The customized environmental variance in path needs in order to which script interpreter can be parsed in the process of implementation with customized environmental variance To will search environmental variance mode setting is to search customized environmental variance mode, so as to encounter generation in program operation process When the customized environmental variance in table dynamic link editing machine path, the path of dynamic link editing machine can be successfully found namely be Debugging file of uniting presss from both sides path.
For compiling and compiling link order, since there are many source file in an engineering, by type, function Can, module be individually placed in several catalogues, therefore Makefile file can be called so that engineering can compile automatically, The a series of rule of Makefile document definition is specified, which file needs first to compile, which file compiles after needing, which A little files need recompility etc..
Since apple official does not support the engineering established to iOSOpenDev to be compiled, link using script, in order to make It can be compiled in the engineering established using iOSOpenDev, be linked by compilation script, in embodiments of the present invention, passed through The path for exporting dynamic link editing machine makes calling generation during compiling link order after executing compiling and removing When the customized environmental variance in table dynamic link editing machine path, accessible system debug folder path is called to dynamic chain Editing machine is connect, to successfully be compiled, link generation file destination, file destination can be according to the difference of project file State library and/or executable file.
In some embodiments of the invention, compiling link unit can be specifically used for:
The order of compiling link generates file destination after executing compiling according to configuration parameter and remove, and configuration parameter includes Project file path, file destination name, Software Development Kit SDK version and compiling mode, wherein compiling mode is to generate Debug version.
In the order of compiling link after executing compiling and removing, configuration parameter can be configured simultaneously, so that Compiling, link process are executed by the setting of configuration parameter.
It should be noted that since dynamic link editing machine is placed under system debug folder path, in order to visit System debug folder path is asked to call dynamic link editing machine, needs to compile mode and is set as generating debugging version (Debug) mode, the accessible system debug folder path (SYMROOT/Debug) of, to guarantee to compile, be linked into Function.
Packaged unit 303 generates software installation packet, target text for be packaged at least one file destination generated Part includes dynamic base and/or executable file.
The one or more file destinations that will be generated by compiling, link, file destination can be dynamic base and/or can hold Style of writing part carries out packing and ultimately generates required software installation packet.Software installation packet can be deb format, and deb format is APMB package information and packet content are generated software installation by being packaged by Debian software package format, the entitled .deb of file extent Packet.
Specifically, in some embodiments of the invention, packaged unit may include:
Subelement is obtained, at least one target that the order for compiling link after obtaining execution compiling and removing generates File;
Subelement is replicated, for copying at least one file destination in default file folder;
It is packaged subelement, generates software installation packet for be packaged to default file folder.
Wherein, if software installation packet is deb format, default file folder is also required to meet deb software installation packet requirement Format, may finally use dpkg order be packaged generation deb installation kit.
In addition, in some embodiments of the invention, software installation packet automatically generating device provided in an embodiment of the present invention Can also include:
Second setting unit executes compiling and what is used during compiling link order after removing faces for being arranged in When file.
In this way, also can use script in the engineering established using iOSOPenDev and be compiled link, specifically, can To be set as customized environment change by the path of export dynamic link editing machine, and by the path of the dynamic link editing machine Amount, so that project file is during compiling and compiling link, if using the customized environmental variance that can pass through It accesses system debug folder path to call to dynamic link editing machine, when the engineering quantity of software is more, each engineering is equal It can realize automatic compiling, link, multiple file destinations of generation may finally be carried out being packaged generation software installation packet, entirely The generating process of portion's software installation packet no longer needs artificial repetitive operation, improves the efficiency of software installation packet generation.
Correspondingly, the embodiment of the present invention also provides a kind of terminal, it is shown in Figure 4, may include:
Processor 401, memory 402, input unit 403 and output device 404.Processor in browser server 401 quantity can be one or more, take a processor as an example in Fig. 4.In some embodiments of the invention, processor 401, memory 402, input unit 403 and output device 404 can be connected by bus or other means, wherein with logical in Fig. 4 It crosses for bus connection.
Memory 402 can be used for storing software program and module, and processor 401 is stored in memory 402 by operation Software program and module, thereby executing the various function application and data processing of browser server.Memory 402 can It mainly include storing program area and storage data area, wherein storing program area can be needed for storage program area, at least one function Application program etc..In addition, memory 402 may include high-speed random access memory, it can also include non-volatile memories Device, for example, at least a disk memory, flush memory device or other volatile solid-state parts.Input unit 403 can be used It is related with the user setting of browser server and function control in the number or character information that receive input, and generation Key signals input.
Specifically in the present embodiment, processor 401 can be according to following instruction, by one or more application program The corresponding executable file of process be loaded into memory 402, and run and be stored in memory 402 by processor 401 Application program, to realize various functions:
The path of dynamic link editing machine is exported, and is that a representative is dynamic by the path definition of the dynamic link editing machine The customized environmental variance in state Linkage Editor path, the path of the dynamic link editing machine are system debug file road Diameter;
The order for executing compiling link after compiling and removing generates file destination, so that in the execution compiling and clearly During except rear compiling link order, when calling represents the customized environmental variance in dynamic link editing machine path, access The system debug folder path calls the dynamic link editing machine;
At least one described file destination of generation be packaged and generates software installation packet, the file destination includes dynamic State library and/or executable file.
Correspondingly, the order of compiling link generates file destination after the execution compiling and removing, comprising:
The order of compiling link generates file destination, the configuration parameter after executing compiling according to configuration parameter and remove Including project file path, file destination name, Software Development Kit SDK version and compiling mode, wherein the compiling side Formula is to generate this mode of debugging version.
Correspondingly, before the order of compiling link generates file destination after executing compiling and removing, further includes:
It is to search customized environmental variance mode that environmental variance mode setting, which will be searched,.
Correspondingly, described carry out at least one described file destination of generation to be packaged generation software installation packet, comprising:
Obtain at least one described file destination that the order of compiling link after executing compiling and removing generates;
At least one described file destination is copied in default file folder;
Default file folder be packaged and generates software installation packet.
Correspondingly, further include:
The temporary folder used during compiling link order after executing the compiling and removing is set.
It should be noted that each embodiment in this specification is described in a progressive manner, each embodiment emphasis is said Bright is the difference from other embodiments, and the same or similar parts in each embodiment may refer to each other.For reality For applying system or device disclosed in example, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, phase Place is closed referring to method part illustration.
It should also be noted that, herein, relational terms such as first and second and the like are used merely to one Entity or operation are distinguished with another entity or operation, without necessarily requiring or implying between these entities or operation There are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant are intended to contain Lid non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
The step of method described in conjunction with the examples disclosed in this document or algorithm, can directly be held with hardware, processor The combination of capable software module or the two is implemented.Software module can be placed in random access memory (RAM), memory, read-only deposit Reservoir (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technology In any other form of storage medium well known in field.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of method that software installation packet automatically generates, which is characterized in that the described method includes:
The path of dynamic link editing machine is exported, and the path definition of the dynamic link editing machine is one and represents dynamic chain The customized environmental variance in editing machine path is connect, the path of the dynamic link editing machine is system debug folder path;
To the project file for using iOSOPenDev to establish, the order of compiling link generates target text after executing compiling and removing Part, so as to represent dynamic link editing machine in calling during compiling link order after executing the compiling and removing When the customized environmental variance in path, accesses the system debug folder path and call the dynamic link editing machine;
To not being the engineering established using iOSOpenDev, the order of compiling and link is executed by the compilation script of standard, Generate file destination;The compiling mode of the compilation script of the standard is to generate released version mode;
At least one described file destination of generation be packaged and generates software installation packet, the file destination includes dynamic base And/or executable file;
The method is realized by way of running shell script.
2. the method according to claim 1, wherein it is described execute compiling and remove after compiling link order Generate file destination, comprising:
The order of compiling link generates file destination after executing compiling according to configuration parameter and remove, and the configuration parameter includes Project file path, file destination name, Software Development Kit SDK version and compiling mode, wherein the compiling mode is Generate debugging version.
3. the method according to claim 1, wherein the order of compiling link is raw after executing compiling and removing Before file destination, the method also includes:
It is to search customized environmental variance mode that environmental variance mode setting, which will be searched,.
4. the method according to claim 1, wherein described carry out at least one described file destination of generation It is packaged and generates software installation packet, comprising:
Obtain at least one described file destination that the order of compiling link after executing compiling and removing generates;
At least one described file destination is copied in default file folder;
Default file folder be packaged and generates software installation packet.
5. the method according to claim 1, wherein the method also includes:
The temporary folder used during compiling link order after executing the compiling and removing is set.
6. a kind of device that software installation packet automatically generates, which is characterized in that described device includes:
Lead-out unit is for exporting the path of dynamic link editing machine, and by the path definition of the dynamic link editing machine One represents the customized environmental variance in dynamic link editing machine path, and the path of the dynamic link editing machine is system debug Folder path;
Compiling link unit, for executing compiling and compiling chain after removing to the project file for using iOSOPenDev to establish The order connect generates file destination, so as to call during compiling link order after executing the compiling and removing When representing the customized environmental variance in dynamic link editing machine path, accesses the system debug folder path and call described move State Linkage Editor;To not being the engineering established using iOSOpenDev, compiling and chain are executed by the compilation script of standard The order connect generates file destination;The compiling mode of the compilation script of the standard is to generate released version mode;
Packaged unit generates software installation packet, the target for be packaged at least one the described file destination generated File includes dynamic base and/or executable file.
7. device according to claim 6, which is characterized in that the compiling link unit is specifically used for:
The order of compiling link generates file destination after executing compiling according to configuration parameter and remove, and the configuration parameter includes Project file path, file destination name, Software Development Kit SDK version and compiling mode, wherein the compiling mode is Generate debugging version.
8. device according to claim 6, which is characterized in that described device further include:
First setting unit searches customized environmental variance mode for that will search environmental variance mode setting.
9. device according to claim 6, which is characterized in that packaged unit includes:
Subelement is obtained, at least one described target that the order for compiling link after obtaining execution compiling and removing generates File;
Subelement is replicated, for copying at least one described file destination in default file folder;
It is packaged subelement, generates software installation packet for be packaged to default file folder.
10. device according to claim 6, which is characterized in that described device further include:
Second setting unit, for be arranged in execute the compiling and removing after use during compiling link order face When file.
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 CN104714788A (en) 2015-06-17
CN104714788B true 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)

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106776266B (en) * 2015-11-25 2021-11-09 腾讯科技(深圳)有限公司 Configuration method of test tool and terminal equipment
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
CN107741844B (en) 2016-08-22 2020-12-01 腾讯科技(深圳)有限公司 Method and device for generating application installation package
CN107918583B (en) * 2016-10-09 2021-01-19 腾讯科技(深圳)有限公司 Script dynamic debugging method, 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
CN110471663B (en) * 2018-05-11 2024-01-02 杭州海康威视数字技术股份有限公司 Code compiling method and device and electronic equipment
CN109101244B (en) * 2018-07-20 2022-06-03 珠海宏桥高科技有限公司 Integrated automatic packaging method for ios system
CN109491664B (en) * 2018-11-08 2021-03-26 腾讯科技(深圳)有限公司 iOS application program generation method, device, equipment and storage medium
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
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
CN116661904B (en) * 2023-07-27 2023-10-13 中电科申泰信息科技有限公司 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》.2012, *

Also Published As

Publication number Publication date
CN104714788A (en) 2015-06-17

Similar Documents

Publication Publication Date Title
CN104714788B (en) A kind of method and device that software installation packet automatically generates
CN111770113B (en) Method for executing intelligent contract, block chain node and node equipment
CN106775723B (en) Android platform-based system firmware customization method and Android device
Jablonski et al. CReN: A tool for tracking copy-and-paste code clones and renaming identifiers consistently in the IDE
CN104298534B (en) Programmed method and device based on Lua language
WO2016026328A1 (en) Information processing method and device and computer storage medium
CN110083360A (en) A kind of Compilation Method of application code, device, equipment and storage medium
CN103218428B (en) A kind of dynamic link method and system
CN108549537A (en) The method and system of user data acquisition based on Android terminal
CN111985055A (en) Model packaging method and device and electronic equipment
CN103077038B (en) The method of dynamic generation and compiling .NET project
CN112667352A (en) Multi-CPU instruction cross compiling unified construction method, equipment and medium
CN103645888A (en) System and method for automatically building operation system
CN115756451A (en) Method, device, equipment and storage medium for reusing multi-project code file
CN109558121A (en) Development approach, device, equipment and the storage medium of interface drive program
CN111367512B (en) Method and device for creating Android library module dependency relationship in application development
Chakravarthy et al. Edicts: implementing features with flexible binding times
Lieberherr et al. Experience with a graph-based propagation programming tool
US11573787B1 (en) Hot reloading a running application with an unsaved source code change
CN115857999A (en) Method and system for obtaining micro front-end system architecture based on vue system architecture transformation
US9646118B1 (en) Linking of simulators into a circuit design tool
Bagge Facts, Resources, and the IDE/Compiler Mind-Meld
CN106547519A (en) Information processing method and system
CN109815142A (en) A kind of product test method and apparatus
Chandraiah et al. Creating explicit communication in SoC models using interactive re-coding

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