CN101334729B - Method and device for treating the software package - Google Patents

Method and device for treating the software package Download PDF

Info

Publication number
CN101334729B
CN101334729B CN2008101354718A CN200810135471A CN101334729B CN 101334729 B CN101334729 B CN 101334729B CN 2008101354718 A CN2008101354718 A CN 2008101354718A CN 200810135471 A CN200810135471 A CN 200810135471A CN 101334729 B CN101334729 B CN 101334729B
Authority
CN
China
Prior art keywords
file
bag
developing instrument
operation system
software package
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
CN2008101354718A
Other languages
Chinese (zh)
Other versions
CN101334729A (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.)
Kingdee Software China Co Ltd
Original Assignee
Kingdee Software China 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 Kingdee Software China Co Ltd filed Critical Kingdee Software China Co Ltd
Priority to CN2008101354718A priority Critical patent/CN101334729B/en
Publication of CN101334729A publication Critical patent/CN101334729A/en
Application granted granted Critical
Publication of CN101334729B publication Critical patent/CN101334729B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a processing method of a software package and a device; the processing method of the software package comprises the following steps: a development tool document of a designed operating system is obtained; in the configuration file of the downloaded software package, the name of an operating system corresponding to the software package is modified to the name of the designed operating system; the obtained development tool document of the designed operating system is used for replacing the development tool document in the downloaded software package; correspondingly, the invention also provides a processing device of the software package; the technical proposal provided by the invention can lead the software package to be applicable to manufacturing the installation kit of any designed operating system.

Description

The disposal route of software package and device
Technical field
The present invention relates to field of computer technology, be specifically related to a kind of disposal route and device of software package.
Background technology
In software development process, can utilize various Software tool design and installation program and fabrication and installation bag at present.With InstallAnywhere is example, and InstallAnywhere is program Setup Wizard tools, utilizes InstallAnywhere can be relatively easy to the installation procedure on the development of virtual master-slave mode platform and produces installation kit.Current, mainly be that the installation kit that utilizes InstallAnywhere to carry out the java class product is made.
Java is the java applet design language (hereinafter to be referred as Java language) of release in May nineteen ninety-five and the general name of Java platform, at present in widespread use.The Java platform is made up of Java Virtual Machine JVM (JavaVirtual Machine) and Java API.In the process of fabrication and installation bag; Need utilize the content of certain software package; For example be to utilize virtual machine VM (Virtual Machine) resource file in Java; Be also referred to as virtual machine bag (VM bag), each VM wraps the operating system under corresponding a kind of platform, for example corresponding Unix operating system or Windows operating system etc.Mainly comprise VM bag and product component two parts content in the installation kit after the making.
Seeing also Fig. 1, is the process flow diagram of prior art fabrication and installation bag, comprising:
Step 101, download the VM bag from network side;
InstallAnywhere itself has carried the support function that the installation kit of certain specific operation system is made, and has promptly contained the VM bag of certain specific operation system, directly utilizes this VM bag just can make installation kit that should operating system.
Make the installation kit under other operating systems if desired, then can land InstallAnywhere official website, download needed VM bag from network side server.
Step 102, the VM bag of downloading is placed under the Resource TOC of local installation directory;
After the required VM of terminal downloads wrapped, the Resource TOC that is placed into local InstallAnywhere installation directory to this VM bag was under the installer_vms catalogue.
The needed VM bag of fabrication and installation bag all is to read from the installer_vms catalogue, so after downloading the VM bag, the VM bag is placed into the installer_vms catalogue.
Step 103, pack according to the VM under the Resource TOC and to make installation kit.
After the VM bag was placed into the installer_vms catalogue, terminal operating InstallAnywhere after the order of the fabrication and installation bag that gets access to user's input (for example the user clicks the build button), then moved production process, generates the installation kit that contains said VM bag.
But; Through discovering; The operating system of InstallAnywhere official support at present is fewer, does not just have the corresponding VM that has made bag for some operating system, and lacks these VM bags; Just can't make the installation kit that is fit to these operating systems, so the utilization of VM bag has limitation in the prior art.
Summary of the invention
The technical matters that the embodiment of the invention will solve provides a kind of disposal route and device of software package, can make software package be suitable for making the installation kit of any assigned operation system.
For solving the problems of the technologies described above, embodiment provided by the present invention realizes through following technical scheme:
The embodiment of the invention provides a kind of disposal route of software package, comprising: the developing instrument file that obtains the assigned operation system; In the configuration file of downloaded software bag, be said assigned operation systematic name with software package relative operation system name modifications; With the developing instrument file in the said bag of downloaded software of developing instrument file replacement of the said assigned operation system that obtains.
Preferably, the said developing instrument file that obtains the assigned operation system is specially: the Java developing instrument file that obtains the assigned operation system; Said in the configuration file of downloaded software bag; With software package relative operation system name modifications is said assigned operation systematic name; Developing instrument file with in the said bag of downloaded software of developing instrument file replacement of the said assigned operation system that obtains is specially: in the configuration file of the virtual machine VM bag of having downloaded, it is said assigned operation systematic name that VM is wrapped the relative operation system name modifications; With the Java developing instrument file in the said virtual machine VM bag of having downloaded of the Java developing instrument file replacement of the said assigned operation system that obtains.
Preferably, the said Java developing instrument file that obtains the assigned operation system further comprises afterwards: the script authority of said Java developing instrument file is revised as and can carries out; Java developing instrument file in the said virtual machine VM bag of having downloaded of the Java developing instrument file replacement of the said assigned operation system that obtains of said usefulness is specially: with the Java developing instrument file in the said virtual machine VM bag of having downloaded of the Java developing instrument file replacement of the assigned operation system after the modification script authority.
Preferably; Said script authority with said Java developing instrument file further comprises after being revised as and can carrying out: pack and processed compressed; Obtain compressed file, carry out the step of the Java developing instrument file in the said virtual machine VM bag of having downloaded of replacement again.
Preferably; VM being wrapped the relative operation system name modifications is said assigned operation systematic name; And after replacing the step completion of the Java developing instrument file in the said virtual machine VM bag of having downloaded, the new VM bag that obtains is copied under the Resource TOC of fabrication and installation bag.
Preferably, said script authority with said Java developing instrument file is revised as that can to carry out specifically be that carry out the authority chmod order back that obtains input.
Preferably, the said packing and processed compressed obtains compressed file and be specially: obtain the packing tar order of input, the Java developing instrument file after the modification script authority is packed to handle obtains packaging file; Obtain the compression compress order of input, said packaging file is carried out processed compressed obtain compressed file.
The embodiment of the invention provides a kind of treating apparatus of software package, comprising: acquiring unit is used to obtain the developing instrument file of assigned operation system; Dispensing unit is used at the configuration file of downloaded software bag, is said assigned operation systematic name with software package relative operation system name modifications; Processing unit, the developing instrument file of the said bag of downloaded software of developing instrument file replacement of the assigned operation system that is used for obtaining with said acquiring unit.
What preferably, said acquiring unit obtained is the Java developing instrument file of specifying operating system; Said dispensing unit is that it is said assigned operation systematic name that VM is wrapped the relative operation system name modifications in the configuration file of the virtual machine VM bag of having downloaded; Said processing unit is the Java developing instrument file in the said virtual machine VM bag of having downloaded of Java developing instrument file replacement of the assigned operation system that obtains with said acquiring unit.
Preferably, said treating apparatus also comprises: the authority unit, the script authority of the Java developing instrument file that is used for said acquiring unit is obtained is revised as and can carries out.
Preferably, said treating apparatus also comprises: packing and compression unit, be used for the Java developing instrument file after the said authority cell processing is packed and processed compressed, and obtain compressed file.
Preferably, said treating apparatus also comprises: the unit is set, is used for the new VM bag through obtaining after said dispensing unit and the said processing unit processes is copied under the Resource TOC of fabrication and installation bag.
Can find out from technique scheme; Embodiment of the invention technical scheme is to make self-defining software package through the mode of " secondary processing "; Promptly revise the configuration file in the software package; And the developing instrument file of the assigned operation system that obtains replaced the former developing instrument file in the downloaded software bag, available so new software package, and new software package just can be suitable for making the installation kit of this assigned operation system.Through such method, just no longer receive downloaded software bag in the prior art not support the restriction of some operating system, just can produce the self-defined software package of corresponding various operating systems, thereby also just can be directed against any operating system fabrication and installation bag.
Description of drawings
Fig. 1 is the process flow diagram of prior art fabrication and installation bag;
Fig. 2 is the process flow figure of the embodiment of the invention one software package;
Fig. 3 is the process flow figure of the embodiment of the invention two software packages;
Fig. 4 is the treating apparatus structural representation of the embodiment of the invention.
Embodiment
The embodiment of the invention provides a kind of disposal route and device of software package, makes after treatment software package be suitable for making the installation kit of any assigned operation system.
Embodiment of the invention technical scheme mainly is behind network side downloaded software bag; Developing instrument file and modification configuration file through the replacement the inside; Obtain new software package; Can obtain various software package as required by this method, and can pack the installation kit of making various assigned operation system, make these installation kits under the assigned operation system, to install according to Different software.The described software package of the embodiment of the invention, with VM include example explanation but be not limited to this, the described developing instrument file of the embodiment of the invention illustrates with Java developing instrument file (being jdk) but is not limited to this.
Seeing also Fig. 2, is the process flow figure of the embodiment of the invention one software package, comprising:
Step 201, obtain the developing instrument file of assigned operation system;
With the developing instrument file is that Java developing instrument file illustrates, and when confirm to need making the installation kit of corresponding a certain assigned operation system, obtains the Java developing instrument file (being jdk) of this assigned operation system.Because different operating systems is corresponding different jdk, after therefore definite assigned operation system, obtain the corresponding jdk of this operating system.For example, suppose that the assigned operation system is a Windows operating system, then obtain the corresponding jdk of Windows operating system.
Step 202, in the configuration file of downloaded software bag, be said assigned operation systematic name with software package relative operation system name modifications;
With the software package is the explanation of VM include example, opens the VM bag of downloading from network side, extracts configuration file wherein, with the bag of the VM in configuration file relative operation system title, is set to the assigned operation systematic name of being mentioned in the top step.For example, suppose that the assigned operation system is a Windows operating system, the original setting is corresponding Unix OS name in the VM bag, then in the attribute of configuration file is provided with, corresponding Unix OS name is revised as corresponding Windows OS name.
Step 203, with the developing instrument file in the said bag of downloaded software of the developing instrument file of the said assigned operation system that obtains replacement.
By above-mentioned for example, then obtain the jdk of assigned operation system after, open the VM bag of downloading from network side, original jdk in wrapping with the jdk replacement VM of assigned operation system.
Need to prove that step 202 and step 203 do not have inevitable ordinal relation.
In addition; Obtain after the Java developing instrument file of assigned operation system; Can be further the script authority of said Java developing instrument file be revised as and can carries out, so just can avoid some java applet in the follow-up new VM bag that obtains inexecutable mistake to occur.
Also have; The script authority of said Java developing instrument file is revised as can further include after carrying out: pack and processed compressed; Obtain compressed file, carry out the step of the Java developing instrument file in the said virtual machine VM bag of having downloaded of replacement again.
VM being wrapped the relative operation system name modifications is said assigned operation systematic name; And after replacing the step completion of the Java developing instrument file in the said virtual machine VM bag of having downloaded; The new VM bag that obtains is copied under the Resource TOC of fabrication and installation bag; When carrying out the installation kit making so, just can utilize the said new VM bag under the Resource TOC.
From this embodiment, can find; Because be according to software package fabrication and installation bag; And the installation kit of making is the developing instrument file that comprises in the automatic operating software bag when operation, behind the former developing instrument file in wrapping through the developing instrument file replacement VM with the assigned operation system so; What installation kit moved is the developing instrument file of this assigned operation system, also just can in this assigned operation system, carry out installment work.That is to say,, can obtain various self-defining software package (for example VM bag) as required, also just can utilize these Different software to pack to make the installation kit of corresponding various assigned operation system through the disposal route of the embodiment of the invention one.
Seeing also Fig. 3, is the process flow figure of the embodiment of the invention two software packages.Embodiment two explains with the VM include example that obtains Windows operating system but is not limited to this.
As shown in Figure 3, specifically comprise:
Step 301, obtain the jdk of assigned operation system;
Java developing instrument file (jdk) can obtain after corresponding java virtual machine is installed.Specifying operating system in the embodiment of the invention is Windows operating system, and that therefore obtain is the corresponding jdk of Windows system operation system.
Suppose it is at present under linux operating system, the detailed process of then obtaining jdk is following:
1) confirms the path, place of java executable program;
The user generally can utility command whereis java checks the path, place of java executable program.The corresponding program of said order is carried out at user input commands whereis java and after pressing enter key in the terminal, and the path, place that finds the java executable program is/usr/local/jdk/bin/java, and is shown to the user.
This moment, the user can check the version of java executive routine, was specially to terminal input command cd/usr/local/jdk/bin/java, imported ./java-version then, and pressed enter key.The corresponding program of said order is carried out after receiving the order of user input in the terminal, and the version of java executive routine is shown to the user.
2) according to the path, place of determined java executable program, acquire jdk, and it is copied under another catalogue.
Through the path, place of java executable program, just can confirm the position at jdk place, can copy jdk to another catalogue then, a for example newly-built catalogue is/usr/myjdk, then can jdk be copied to/the usr/myjdk catalogue under.
Step 302, the script authority of jdk is revised as and can carries out;
Generally can order chmod that the authority of java script is made amendment through authority.
Jdk is copied in the above-mentioned steps/the usr/myjdk catalogue under, so the user can input command cd/usr/myjdk, imports chmod-R+x* then, and presses enter key.The corresponding program of said order is carried out after receiving the order of user's input in the terminal, and all file permissions are revised as and can carry out.Through such processing, can avoid the java program of the follow-up VM bag the inside that makes that inexecutable mistake takes place.
Step 303, jdk packing is obtained the tar file;
Generally can be through operation packing order tar jdk boil down to tar file.
User input commands tar-cvf/usr/myvm/vm.tar*, and press enter key.The corresponding program of said order is carried out after receiving the order of user input in the terminal, after command execution finishes, can under/usr/myvm catalogue, generate 1 vm.tar file.The vm.tar file is a most important content, in fact just compressed package that comprises jdk in the VM bag.
Step 304, become the Z file to the tar File Compress;
Generally can become the Z file to the tar File Compress through operation compress order compress.
The user under/usr/myvm catalogue, input command compress vm.tar, and press enter key.The corresponding program of said order is carried out after receiving the order of user's input in the terminal, carries out processed compressed.After command execution finished, vm.tar file originally disappeared, and has become a vm.tar.Z file, and this vm.tar.Z file is the content that really need be placed into VM bag the inside.
Step 305, in the configuration file of the VM that downloaded bag, it is said assigned operation systematic name that VM is wrapped the relative operation system name modifications;
Can be through revising the vm.properties file, the OS name of specifying this VM bag to support.
Suppose to have downloaded from the InstallAnywhere website certain VM bag, this VM bag is corresponding linux operating system.Can continue in linux operating system, to be configured file modifying this moment, also can forward other system to and for example be configured file modifying in the Windows operating system.
Because in the Windows system, make amendment than be easier to, so this step is under Windows operating system, to be configured file modification and to illustrate but be not limited to this.
Order winrar is opened in operation, opens this VM bag, extracts vm.properties file wherein.Content original in the vm.properties file is:
Vm.platform=unix is provided with the corresponding platform of VM bag, is unix here
Vm.platform.flavor=linux is provided with VM bag relative operation system
Vm.name=Linux_1_5_0_IBMppc_64bit is provided with VM and wraps in the title that the InstallAnywhere the inside shows
The java that vm.exe.path=bin/java is provided with the vm bag starts the path
Concrete modification to the vm.properties file is as follows:
Vm.platform=Windows is provided with the corresponding platform of vm bag
Vm.platform.flavor=Windows is provided with VM bag relative operation system
The title that vm.name=Windows_Microsoft shows
The java that vm.exe.path=bin/java is provided with the vm bag starts the path
For vm.platform, having only 2 options generally speaking is unix and Windows.Because be the VM bag that will obtain being fit to Windows operating system in the present embodiment, therefore change option into Windows.For vm.platform.flavor, option is more, like linux, Windows, aix etc., specifically is provided with as required.For vm.name, be VM to be set wrap in the title that the InstallAnywhere the inside shows, this can be provided with rule according to user's requirement.
Carry out after the above-mentioned modification, new vm.properties file will cover original file of the same name.
Need to prove that the step of step 305 and front does not have inevitable ordinal relation, can first execution in step 305 yet.
Step 306, with original jdk in the Z file that the obtains replacement VM bag;
Because in the Windows system, operate than be easier to, so this step is to illustrate but be not limited to this with operation under Windows operating system, also can continue in linux operating system, to carry out.
The vm.tar.Z file that obtains compression in the step 304 is transferred to Windows operating system from linux operating system; For example can pass through ftp (File Transfer Protocol; FTP) mode is transmitted; Order winrar is opened in operation then, opens this VM bag (if step has been opened the VM bag then the winrar order of need not reruning before), promptly replaces original jdk to original file of the same name in the new vm.tar.Z file replacement VM bag then.Original jdk stores with the vm.tar.Z file mode in the VM bag.
Need to prove that step 306 and step 305 do not have inevitable ordinal relation.
Step 307, with original jdk in the Z file that the obtains replacement VM bag, and after the configuration file of VM bag made amendment, obtain new VM bag, new VM bag is placed under the Resource TOC of fabrication and installation bag.
Promptly replace original jdk to original file of the same name in the new vm.tar.Z file replacement VM bag, and after the vm.properties file made amendment, obtain new VM bag, this VM bag is placed under the Resource TOC of InstallAnywhere.
For example InstallAnywhere be mounted in installanywhere catalogue, so just this VM bag copy to Resource TOC installanywhere under the catalogue.According to the principle of work of InstallAnywhere, the needed VM bag of fabrication and installation bag all reads from this installer_vms catalogue.When the user confirms the fabrication and installation bag, click the build button so, then the terminal is carried out installation kit and is made the pairing program of order, packs to make according to the new VM under the said Resource TOC to be fit to the installation kit that the assigned operation system installs.
From this embodiment, can find; When the embodiment of the invention needs the fabrication and installation bag, not directly to adopt the VM bag of downloading, but make self-defining VM bag through the mode of " secondary processing "; Promptly through revising the configuration file in the VM bag; And behind the former jdk in the VM bag that the jdk of the assigned operation system that obtains replacement has been downloaded, the new VM bag that obtains, and new VM bag is the installation kit that can be suitable for making this assigned operation system.Through such method, the VM bag of just no longer being downloaded is not supported the restriction of some operating system, can produce the self-defined VM bag of corresponding various operating systems, thereby just can be directed against any operating system fabrication and installation bag yet.
Need to prove that the processing that the foregoing description wraps VM is with the explanation of Java applicating example but is not limited to this that for the application of non-java class, its principle is identical.
Foregoing has been introduced the disposal route of embodiment of the invention software package in detail, and corresponding, the embodiment of the invention also provides a kind of treating apparatus of software package.
Seeing also Fig. 4, is the treating apparatus structural representation of the embodiment of the invention.
As shown in Figure 4, treating apparatus comprises: acquiring unit 401, dispensing unit 402 and processing unit 403.
Acquiring unit 401 is used to obtain the developing instrument file of assigned operation system.
The developing instrument file can be Java developing instrument file.When confirm to need making the installation kit of corresponding a certain assigned operation system, acquiring unit 401 obtains the Java developing instrument file (being jdk) of this assigned operation system.Because different operating systems is corresponding different jdk, after therefore definite assigned operation system, obtain the corresponding jdk of this operating system.
Dispensing unit 402 is used at the configuration file of downloaded software bag, is said assigned operation systematic name with software package relative operation system name modifications.
Software package can be virtual machine VM bag.Dispensing unit 402 is opened the VM bag of downloading from network side, extracts configuration file wherein, with the bag of the VM in configuration file relative operation system title, is set to the assigned operation systematic name of being mentioned in the top step.For example, suppose that the assigned operation system is a Windows operating system, the original setting is corresponding Unix OS name in the VM bag, then in the attribute of configuration file is provided with, corresponding Unix OS name is revised as corresponding Windows OS name.
Processing unit 403, the developing instrument file of the said bag of downloaded software of developing instrument file replacement of the assigned operation system that is used for obtaining with said acquiring unit 401.
When the developing instrument file is a Java developing instrument file; When software package is the VM bag, the Java developing instrument file in the said virtual machine VM bag of having downloaded of the Java developing instrument file replacement of the assigned operation system that the said acquiring unit 401 of processing unit 403 usefulness obtains.After processing unit 403 obtains the jdk of assigned operation system, open the VM bag of downloading from network side, with original jdk in the jdk replacement VM bag of assigned operation system.
Said treating apparatus also comprises: authority unit 404.
Authority unit 404, the script authority of the Java developing instrument file that is used for said acquiring unit 401 is obtained is revised as and can carries out, and so just can avoid some java applet in the follow-up new VM bag that obtains inexecutable mistake to occur.The script authority of said Java developing instrument file is revised as can to carry out specifically be that carry out the authority chmod order back that obtains input.
Said treating apparatus also comprises: packing and compression unit 405.
Packing and compression unit 405 are used for the Java developing instrument file after 404 processing of said authority unit is packed and processed compressed, obtain compressed file.Be specially: obtain the packing tar order of input, the Java developing instrument file after the modification script authority is packed to handle obtains packaging file; Obtain the compression compress order of input, said packaging file is carried out processed compressed obtain compressed file.
Said treating apparatus also comprises: unit 406 is set.
Unit 406 is set, is used for the new VM bag through obtaining after said dispensing unit 402 and 403 processing of said processing unit is copied under the Resource TOC of fabrication and installation bag.
In sum; Embodiment of the invention technical scheme is to make self-defining software package through the mode of " secondary processing "; Promptly revise the configuration file in the software package; And the developing instrument file of the assigned operation system that obtains replaced the former developing instrument file in the downloaded software bag, available so new software package, and new software package just can be suitable for making the installation kit of this assigned operation system.Through such method, just no longer receive downloaded software bag in the prior art not support the restriction of some operating system, just can produce the self-defined software package of corresponding various operating systems, thereby also just can be directed against any operating system fabrication and installation bag.
Further, embodiment of the invention technical scheme can also be revised as the script authority of the jdk that obtains and can carry out, and through such processing, can avoid the java program of the follow-up VM bag the inside that makes that inexecutable mistake takes place.
The present invention can be used for numerous general or special purpose computingasystem environment or configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, small-size computer, mainframe computer, comprise DCE of above any system or equipment or the like.In addition, the present invention can also describe in the general context of the computer executable instructions of being carried out by computing machine, for example program module.Usually, program module comprises the routine carrying out particular task or realize particular abstract, program, object, assembly, data structure or the like.Also can in DCE, put into practice the present invention, in these DCEs, by through communication network connected teleprocessing equipment execute the task.In DCE, program module can be arranged in this locality and the remote computer storage medium that comprises memory device.
More than the disposal route and the device of a kind of software package that the embodiment of the invention provided carried out detailed introduction; Used concrete example among this paper principle of the present invention and embodiment are set forth, the explanation of above embodiment just is used for helping to understand method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.

Claims (11)

1. the disposal route of a software package is characterized in that, comprising:
To the pretreated step of software package:
Obtain the developing instrument file of assigned operation system;
In the configuration file of downloaded software bag, be said assigned operation systematic name with software package relative operation system name modifications;
With the developing instrument file in the said bag of downloaded software of developing instrument file replacement of the said assigned operation system that obtains; And
The new software package that obtains is copied under the Resource TOC of fabrication and installation bag;
According to through said pretreated software package fabrication and installation bag;
Move said installation kit, be implemented under the said assigned operation system developing instrument file of the said assigned operation of operation system automatically, accomplish the installment work in said assigned operation system.
2. the disposal route of software package according to claim 1 is characterized in that:
The said developing instrument file that obtains the assigned operation system is specially: the Java developing instrument file that obtains the assigned operation system;
In the configuration file of downloaded software bag; With software package relative operation system name modifications is said assigned operation systematic name, is specially with the developing instrument file in the said bag of downloaded software of developing instrument file replacement of the said assigned operation system that obtains:
In the configuration file of the virtual machine VM bag of having downloaded, it is said assigned operation systematic name that VM is wrapped the relative operation system name modifications;
With the Java developing instrument file in the said virtual machine VM bag of having downloaded of the Java developing instrument file replacement of the said assigned operation system that obtains.
3. the disposal route of software package according to claim 2 is characterized in that:
The said Java developing instrument file that obtains the assigned operation system further comprises afterwards: the script authority of said Java developing instrument file is revised as and can carries out;
Java developing instrument file in the said virtual machine VM bag of having downloaded of the Java developing instrument file replacement of the said assigned operation system that obtains of said usefulness is specially:
With the Java developing instrument file in the said virtual machine VM bag of having downloaded of the Java developing instrument file replacement of the assigned operation system after the modification script authority.
4. the disposal route of software package according to claim 3 is characterized in that:
Said script authority with said Java developing instrument file further comprises after being revised as and can carrying out:
Pack and processed compressed, obtain compressed file, carry out the step of the Java developing instrument file in the said virtual machine VM bag of having downloaded of replacement again.
5. according to the disposal route of each described software package of claim 2 to 4, it is characterized in that:
VM being wrapped the relative operation system name modifications is said assigned operation systematic name; And after replacing the step completion of the Java developing instrument file in the said virtual machine VM bag of having downloaded, the new VM bag that obtains is copied under the Resource TOC of fabrication and installation bag.
6. according to the disposal route of claim 3 or 4 described software packages, it is characterized in that:
Said script authority with said Java developing instrument file is revised as that can to carry out specifically be that carry out authority chmod order back obtaining input.
7. the disposal route of software package according to claim 4 is characterized in that:
The said packing and processed compressed obtains compressed file and is specially:
Obtain the packing tar order of input, the Java developing instrument file after the modification script authority is packed to handle obtains packaging file;
Obtain the compression compress order of input, said packaging file is carried out processed compressed obtain compressed file.
8. the treating apparatus of a software package is characterized in that, comprising:
Acquiring unit is used to obtain the developing instrument file of assigned operation system;
Dispensing unit is used at the configuration file of downloaded software bag, is said assigned operation systematic name with software package relative operation system name modifications;
Processing unit, the developing instrument file of the said bag of downloaded software of developing instrument file replacement of the assigned operation system that is used for obtaining with said acquiring unit;
The unit is set, is used for the new software package through obtaining after said dispensing unit and the said processing unit processes is copied under the Resource TOC of fabrication and installation bag;
Make the unit, be used for the software package fabrication and installation bag that is provided with after the cell processing according to said;
The operation unit is used to move said installation kit, is implemented under the said assigned operation system developing instrument file of the said assigned operation of operation system automatically, accomplishes the installment work in said assigned operation system.
9. the treating apparatus of software package according to claim 8 is characterized in that:
What said acquiring unit obtained is the Java developing instrument file of specifying operating system;
Said dispensing unit is that it is said assigned operation systematic name that VM is wrapped the relative operation system name modifications in the configuration file of the virtual machine VM bag of having downloaded;
Said processing unit is the Java developing instrument file in the said virtual machine VM bag of having downloaded of Java developing instrument file replacement of the assigned operation system that obtains with said acquiring unit.
10. the treating apparatus of software package according to claim 9 is characterized in that, said treating apparatus also comprises:
The authority unit, the script authority of the Java developing instrument file that is used for said acquiring unit is obtained is revised as and can carries out.
11. the treating apparatus of software package according to claim 10 is characterized in that, said treating apparatus also comprises:
Packing and compression unit are used for the Java developing instrument file after the said authority cell processing is packed and processed compressed, obtain compressed file.
CN2008101354718A 2008-08-07 2008-08-07 Method and device for treating the software package Active CN101334729B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101354718A CN101334729B (en) 2008-08-07 2008-08-07 Method and device for treating the software package

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101354718A CN101334729B (en) 2008-08-07 2008-08-07 Method and device for treating the software package

Publications (2)

Publication Number Publication Date
CN101334729A CN101334729A (en) 2008-12-31
CN101334729B true CN101334729B (en) 2012-01-25

Family

ID=40197345

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101354718A Active CN101334729B (en) 2008-08-07 2008-08-07 Method and device for treating the software package

Country Status (1)

Country Link
CN (1) CN101334729B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9066404B2 (en) 2008-06-26 2015-06-23 Telelumen Llc Systems and methods for developing and distributing illumination data files
CN102147723A (en) * 2010-02-05 2011-08-10 北京金山数字娱乐科技有限公司 Method and system for generating software packages
CN102541583A (en) * 2010-12-24 2012-07-04 北大方正集团有限公司 Method and device for building installation programs
CN102654835B (en) * 2012-05-03 2015-10-07 中标软件有限公司 (SuSE) Linux OS distribution method for making
CN104077118A (en) * 2013-03-27 2014-10-01 腾讯科技(深圳)有限公司 Resource customization method and resource customization device of application program
CN105573734B (en) * 2014-10-17 2019-12-17 阿里巴巴集团控股有限公司 method and equipment for providing SDK file
CN106933609B (en) * 2015-12-29 2021-01-15 北京五八信息技术有限公司 Android application program installation package generation method and device
CN106293775A (en) * 2016-10-12 2017-01-04 广州视源电子科技股份有限公司 The automatic generation method of a kind of script and device
CN110231953B (en) * 2019-05-24 2022-08-16 厦门美柚股份有限公司 Method and system for executing remote code by APP
CN116991471B (en) * 2023-09-26 2024-01-05 腾讯科技(深圳)有限公司 Method, device, equipment and storage medium for processing installation package file

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1288779A2 (en) * 2001-08-30 2003-03-05 Sun Microsystems, Inc. Method and apparatus to facilitate automated software installation on remote computers over a network
CN101027639A (en) * 2004-07-21 2007-08-29 索芙特瑞斯提股份有限公司 System and method for extraction and creation of application meta-information within a software application repository
CN101114299A (en) * 2006-07-07 2008-01-30 国际商业机器公司 Method for programmatically hiding and displaying wiki page layout sections

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1288779A2 (en) * 2001-08-30 2003-03-05 Sun Microsystems, Inc. Method and apparatus to facilitate automated software installation on remote computers over a network
CN101027639A (en) * 2004-07-21 2007-08-29 索芙特瑞斯提股份有限公司 System and method for extraction and creation of application meta-information within a software application repository
CN101114299A (en) * 2006-07-07 2008-01-30 国际商业机器公司 Method for programmatically hiding and displaying wiki page layout sections

Also Published As

Publication number Publication date
CN101334729A (en) 2008-12-31

Similar Documents

Publication Publication Date Title
CN101334729B (en) Method and device for treating the software package
CN109491695B (en) Incremental updating method for integrated android application
US10296323B2 (en) System and method for fast initial and incremental deployment of apps
CN111367510B (en) Android function module development method and device
EP1214645B1 (en) Method and system for distributing object-oriented computer programs
CN102880498B (en) The method of virtual SD card on the device of Android system
US7725888B2 (en) Systems and methods for dynamically linking application software into a running operating system kernel
US20050240907A1 (en) Loading object-oriented computer programs
CN103259936B (en) Operating system upgrade method for mobile terminal and operating system upgrade device of operating system upgrade method
CN105335173A (en) Method, apparatus and system for initializing intelligent terminal device
CN103714287B (en) Method and device for obtaining temporary Root authority
CN103176769A (en) Customizable software deployment, installation method and system
WO2007117514A1 (en) Mobile device capable of multiple updates
EP1570340A4 (en) Device memory management during electronic file updating
CN101957766B (en) Method, device and system for weaving byte code
CN104580480A (en) Remote automatic deployment system and method for client end
CN110727440A (en) Software packaging method
CN104090946A (en) Method and device for adding information to application installation package
CN104750528A (en) Management method and device for components in Android program
CN111880987A (en) Dynamic monitoring method and device of application program, storage medium and electronic device
GB2376324A (en) Apparatus and method for updating applications to embedded devices and peripherals within a network environment
CN110795139A (en) Client batch packaging method and device, computer equipment and storage medium
CN104536752A (en) Method and device for automatically generating APK files
CN104484207A (en) Mirror image upgrading method for switch, linux operation system and switch
CN112181366B (en) Mobile application development framework based on cross-platform interaction

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant