Disclosure of Invention
The invention aims to at least solve one of the technical problems in the prior art, and provides a method, a device and a medium for accelerating the package outputting speed of a Unity-based 3D project, so that the package outputting speed of the project is increased, the project development speed is accelerated, and the bug verification efficiency is improved.
The technical scheme of the invention comprises a method for accelerating the unpacking speed of a Unity-based 3D project, which is characterized by comprising the following steps: s100, deleting an old Bundle package in the BVT test file based on the Unity3D project, repacking the Bundle package in the BVT test file, and generating a whole package, wherein the whole package is an apk/ipa installation package; and S200, performing incremental updating on the whole package, and performing adaptive packaging according to the condition of resource updating and/or code updating in the incremental updating.
According to the method for accelerating the package-out speed of the Unity-based 3D project, the packaging comprises the following steps: synchronous packaging is carried out by sharing the directory and using multiple devices, or multiple projects are created by a single device for packaging.
According to the method for accelerating the package-out speed of the Unity-based 3D project, the synchronous packaging by sharing the directory and using the multiple devices comprises the following steps: and copying the files of all Bundle packages to other equipment in a directory sharing mode for the Bundle packages which are integrally repackaged, and performing the packaging processing again.
According to the method for accelerating the package-out speed of the Unity-based 3D project, the step of creating multiple projects through single equipment for packaging comprises the following steps: and creating a corresponding project copy based on the Unity3D project catalog in the same equipment, and synchronously packaging by starting a plurality of Unity3D processes.
According to the method for accelerating the package-out speed based on the Unity3D project, the S200 includes: only updating resources, performing incremental updating on the old Bundle package, and not updating when the resource content is unchanged; only updating codes, executing apk packaging processing on equipment which only needs apk packaging, including packaging processing according to resources needing to be packaged, and issuing an incremental apk package; and performing resource updating and code updating, performing incremental Bundle packaging on the corresponding equipment of the old Bundle package, and executing apk packaging processing on the equipment needing apk packaging.
According to the method for accelerating the package-out speed based on the Unity3D project, the S200 further includes: the plurality of devices perform synchronous packaging processing.
The technical scheme of the invention also comprises a device for accelerating the packet-out speed based on the Unity3D project, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, and is characterized in that any one of the method steps is realized when the processor executes the computer program.
The invention also relates to a computer-readable storage medium, in which a computer program is stored, which, when being executed by a processor, carries out any of the method steps.
The invention has the beneficial effects that: the Bundle punching and the installation package punching are performed concurrently, so that the package outlet speed of the project is greatly improved, and the project development speed is accelerated; improving the bug verification efficiency and the like.
Detailed Description
Reference will now be made in detail to the present preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
In the description of the present invention, the meaning of a plurality of means is one or more, the meaning of a plurality of means is two or more, and larger, smaller, larger, etc. are understood as excluding the number, and larger, smaller, inner, etc. are understood as including the number.
In the description of the present invention, the consecutive reference numbers of the method steps are for convenience of examination and understanding, and the implementation order between the steps is adjusted without affecting the technical effect achieved by the technical solution of the present invention by combining the whole technical solution of the present invention and the logical relationship between the steps.
In the description of the present invention, unless otherwise explicitly defined, terms such as set, etc. should be broadly construed, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention in combination with the detailed contents of the technical solutions.
Interpretation of terms:
daily BVTs, Build Verification Test, verify whether a Build can be tested by running a series of cases over each day's new Build before it is released to the testing team for further testing. Its point in time occurs after build is complete and before official testing is complete.
Fig. 1 shows a general flow diagram according to an embodiment of the invention, the flow comprising: s100, deleting an old Bundle package in the BVT test file based on the Unity3D project, repacking the Bundle package in the BVT test file, and generating a whole package, wherein the whole package is an apk/ipa installation package; and S200, performing incremental updating on the whole package, and performing adaptive packaging according to the condition of resource updating and/or code updating in the incremental updating.
Fig. 2a, 2b, and 2c are schematic diagrams illustrating different packing resources according to an embodiment of the present invention, including:
the u3d project package can be divided into two parts, one part is a Bundle package, the other part is an apk/IPA installation package, the two parts can be divided into two machine types to be executed in parallel, the packaging efficiency is improved,
(1) the daily BVT version is to clean all old bundles, punch all bundles (device A with bundles) and copy all the bundles to the second device (device B with installation package), and then present the whole package apk/IPA of the present day
The method of sharing the directory is adopted to copy the project into the appointed directory of the equipment B (or the copy directory of another project of the same equipment project directory can be also adopted), the main purpose is to separate two projects for packaging, because the same project only has the process of opening one u3d and cannot be operated in parallel, the parallel operation can be carried out as long as two projects open two u3d
(2) After the first whole package comes out, all increment updating is carried out in the current day, and the increment is divided into three types, namely resource updating only, code updating only, and resource and code updating:
referring to fig. 2a, only resource updating is performed, then, only Bundle resources are punched on (a device a for punching bundles), Bundle packages are punched in increments (that is, bundles are already punched and are not deleted, if the resources in the bundles are not changed, the bundles are not punched again, so that the packing speed is greatly increased), after the Bundle packages are punched in increments, a first increment version can be sent to a project group member, the project group member can quickly verify the modification effect only by updating a small amount of resources without uninstalling an installed application;
referring to fig. 2B, only the code is updated, only the apk is printed on the apk printing device B, Bundle printing is not needed, copy-good resources are directly reused to print the apk again, the increment apk of today is published, a project member needs to reinstall the newly published apk, and the repairing effect is verified;
referring to fig. 2c, when both resources and codes are updated, increasing Bundle on the Bundle-playing device a, copying the Bundle to the apk-playing device B, playing out the apk again, and publishing the current incremental apk, the project member needs to reinstall the newly published apk, and the repairing effect is verified.
(3) And the AB two devices (or two U3D processes of the same device can also work in parallel) can work in parallel, so that the package outputting speed of the project is greatly improved.
Fig. 3 shows a diagram of an apparatus according to an embodiment of the invention. The apparatus comprises a memory 100 and a processor 200, wherein the processor 200 stores a computer program for performing: deleting an old Bundle package in the BVT test file based on the Unity3D project, repacking the Bundle package in the BVT test file, and generating a whole package; and performing incremental updating on the whole package, and performing adaptive packaging according to the condition of resource updating and/or code updating in the incremental updating. Wherein the memory 100 is used for storing data.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.