Unity 3D file release method and device, equipment and medium

By uploading Unity 3D files to cloud OSS and downloading the latest files from it, the problem of Gitlab code warehouse expansion is solved, rapid acquisition and release of Unity 3D static resources is achieved, development efficiency is improved and disk space is saved.

CN118535209AInactive Publication Date: 2024-08-23CHINA CONSTR THIRD ENG BUREAU GRP CO LTD +1
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202410539979.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the existing technology, frequent updates of Unity 3D files cause the disk space occupied by the Gitlab code warehouse to expand rapidly, affecting development efficiency. Especially in weak network environments, the code warehouse cloning operation may fail.

Method used

By uploading Unity 3D files to the cloud OSS object storage, and downloading the latest files from OSS during the development phase, decoupling the front-end code warehouse and Unity 3D files, using OSS command line tools for packaging and publishing, and creating public and back directories to manage files. history.

Benefits of technology

It avoids the infinite expansion of the code warehouse, improves development efficiency, saves Gitlab server disk space, and realizes the rapid acquisition and release of Unity 3D static resources.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535209A
    Figure CN118535209A
Patent Text Reader

Abstract

The invention discloses a Unity3D file release method, device and equipment and a medium. The method comprises the following steps: uploading a Unity3D file compiled in a development stage to a specified directory stored in a cloud object; downloading a current latest Unity 3D file from the specified directory, and pulling a front-end engineering code from a Gitlab code warehouse; the Unity3D file and the front-end engineering code are compiled and packaged; and releasing the packaged mirror image file. According to the method and the device, the front-end code warehouse Gitlab and the Unity 3D file are decoupled, so that the problem that the development efficiency is influenced due to infinite expansion of the code warehouse caused by management of the Unity 3D file through the Gitlab is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a Unity 3D file packaging and publishing process, and in particular to implementing Unity 3D static resource packaging and publishing based on cloud OSS object storage, and specifically to a Unity 3D file publishing method, device, equipment and medium. Background Art

[0002] The existing technology uses Gitlab to manage front-end code and corresponding Unity 3D files. Due to the version management feature of Gitlab, the replacement operation of Unity 3D files will save the corresponding historical version. When the Unity 3D file is large (200MB), frequent file updates will cause the disk space occupied by the Gitlab warehouse to expand sharply, resulting in the code warehouse cloning operation taking a long time. In a weak network environment, the code warehouse pulling will fail, which seriously affects development efficiency. Summary of the invention

[0003] In order to overcome the deficiencies of the above-mentioned prior art, the present invention provides a Unity3D file publishing method, device, equipment and medium, which solves the problem that managing Unity3D files through Gitlab leads to infinite expansion of the code repository, thereby affecting development efficiency, by decoupling the front-end code repository Gitlab from the Unity 3D file.

[0004] According to one aspect of the present invention, a Unity3D file publishing method is provided, comprising: Upload the Unity3D files compiled in the development phase to the specified directory of the cloud object storage; Download the latest Unity3D file from the specified directory and pull the front-end engineering code from the Gitlab code repository; Compile and package the Unity3D file and front-end engineering code; Publish the packaged image file.

[0005] As a further technical solution, the method further includes: creating a public directory in a designated storage space of the cloud object storage for storing Unity3D files; and creating a back directory for storing historical archive files.

[0006] As a further technical solution, the method further includes: when executing the release operation, renaming the current Unity3D file in the public directory according to the upload time and moving it to the back directory, and uploading the latest Unity3D file to the public directory.

[0007] As a further technical solution, during the packaging phase, the latest Unity3D file is downloaded from the public directory through the OSS command line tool.

[0008] According to one aspect of the present invention, a Unity3D file publishing device is provided, comprising: The upload module is used to upload the Unity3D files compiled in the development phase to the specified directory of the cloud object storage; The acquisition module is used to download the latest Unity3D file from the specified directory and pull the front-end engineering code from the Gitlab code repository; A packaging module, used to compile and package the Unity3D file and the front-end engineering code; Release module, used to release packaged image files.

[0009] As a further technical solution, the cloud object storage, before receiving the uploaded file, further includes: creating a public directory in the designated storage space for storing Unity3D files; and creating a back directory for storing historical archived files.

[0010] As a further technical solution, the device also includes an update module, which is used to rename the current Unity3D file in the public directory according to the upload time and move it to the back directory when executing the release operation, and upload the latest Unity3D file to the public directory.

[0011] According to one aspect of the present invention, there is provided an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of a Unity3D file publishing method when executing the program.

[0012] According to one aspect of the present invention, a computer storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the steps of the Unity3D file publishing method are implemented.

[0013] Compared with the prior art, the present invention has the following beneficial effects: The present invention decouples the front-end code repository from the Unity 3D file and downloads the latest Unity 3D file from the cloud object storage OSS during the front-end code packaging stage. This not only solves the problem of Unity 3D static resource configuration, but also avoids the unlimited expansion of the code repository. While ensuring development efficiency, it saves Gitlab server disk space. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] Figure 1 The figure is a flow chart of a Unity3D file publishing method according to an embodiment of the present invention.

[0015] Figure 2 The figure is a schematic diagram of a Unity3D file upload process according to an embodiment of the present invention. DETAILED DESCRIPTION

[0016] When Gitlab is used to manage front-end engineering codes and corresponding Unity 3D files, the biggest problem is that when large Unity 3D files are frequently updated, Gitlab will save all historical files, and the entire warehouse will be downloaded during the packaging phase, which makes it difficult to download the warehouse, thereby affecting development efficiency. To this end, the present invention designs a method for managing Unity 3D files based on cloud OSS object storage, decouples the front-end code warehouse from the Unity 3D files, and downloads the latest Unity 3D files from OSS during the front-end code packaging phase, which not only solves the problem of Unity 3D static resource configuration, but also avoids the unlimited expansion of the code warehouse, and saves Gitlab server disk space while ensuring development efficiency.

[0017] Currently, companies such as Alibaba, Tencent, and Huawei have successively provided object storage services (Object Storage Service, referred to as OSS). Users can upload and download data in any application, at any time, and at any location by calling APIs, and can also perform simple data management through the Web console. OSS is suitable for storing any type of files and is suitable for use by various websites, development companies, and developers.

[0018] Gitlab is an open source project for warehouse management systems. It uses Git as a code management tool and builds a web service on this basis.

[0019] Unity 3D is a multi-platform professional game development tool that can be used to create realistic three-dimensional virtual scenes and allow workers to practice assembly operations in a virtual environment, which not only achieves the purpose of learning but also improves safety.

[0020] The technical solution of the present invention is described in detail below through the accompanying drawings and specific embodiments. It should be understood that the embodiments of the present invention and the specific features in the embodiments are detailed descriptions of the technical solution of the present invention, rather than limitations on the technical solution of the present invention. The embodiments of the present invention and the technical features in the embodiments may be combined with each other unless there is a conflict. Example 1

[0021] This embodiment introduces a Unity3D file publishing method for publishing front-end engineering codes and Unity3D static resources.

[0022] like Figure 1 As shown, the method includes: Step 1: Upload the Unity3D file compiled in the development phase to the specified directory of the cloud object storage.

[0023] Before uploading the compiled Unity3D file, Figure 2 As shown, the following steps are also performed: Create a public directory under the specified bucket (storage space) on the cloud OSS to store Unity3D files, and create a back directory to store historical archive files.

[0024] When a release is required, the following steps are also performed: The developer renames the Unity3D files in the current public directory according to the upload date and time, and moves them to the back directory; Developers upload the latest Unity3D files to the public directory.

[0025] Step 2: Download the latest Unity3D file from the specified directory and pull the front-end engineering code from the Gitlab code repository.

[0026] During the front-end engineering code packaging process, perform the following operations: Use the OSS command line tool to download the latest Unity3D file from the public directory; Pull the front-end engineering code from the Gitlab code repository.

[0027] Since the Gitlab code repository does not store Unity3D files at this time, the code repository will not expand infinitely due to frequent updates of Unity3D files, and it will not be difficult to pull codes due to the large code repository. Therefore, the front-end engineering code can be pulled quickly; at the same time, when downloading Unity3D files from cloud object storage, only the latest Unity3D files are downloaded, and all updated versions of Unity3D files do not need to be downloaded, so the download speed of large files is faster. That is, the above steps can achieve the rapid acquisition of both front-end engineering codes and Unity3D files, ensuring development efficiency.

[0028] Step 3: compile and package the Unity3D file and the front-end engineering code.

[0029] When compiling and packaging, first pull the front-end engineering code from Gitlab to the compiler, then download the unity 3D file from OSS to the compiler, and finally complete the entire compilation and packaging process based on the front-end engineering code and unity 3D file to achieve the association between the front-end engineering code and Unity3D static resources.

[0030] The packaged container image contains the required Unity3D files.

[0031] Step 4: Publish the packaged image file.

[0032] Publish the compiled container image to the container to publish the front-end and Unity 3D static resources.

[0033] This embodiment decouples large files from the code repository. Under the premise of ensuring that the code repository volume does not expand infinitely, it realizes the update and release of the front-end code and the Unity 3D static resource large files. This not only ensures development efficiency and avoids the difficulty of code pulling due to the large volume of the code repository, but also ensures that the front-end page can reference the Unity 3D large file resources after release. Example 2

[0034] Based on the same inventive concept as that of Embodiment 1, this embodiment introduces a Unity3D file publishing device, including: The upload module is used to upload the Unity3D files compiled in the development phase to the specified directory of the cloud object storage; The acquisition module is used to download the latest Unity3D file from the specified directory and pull the front-end engineering code from the Gitlab code repository; A packaging module, used to compile and package the Unity3D file and the front-end engineering code; Release module, used to release packaged image files.

[0035] The specific functions of the above modules are implemented by referring to the relevant contents of the method in Example 1, which will not be described in detail. It is particularly pointed out that: Before receiving the uploaded file, the cloud object storage further includes: creating a public directory in the designated storage space for storing Unity3D files; and creating a back directory for storing historical archive files.

[0036] The device also includes an update module, which is used to rename the current Unity3D file in the public directory according to the upload time and move it to the back directory when executing the release operation, and upload the latest Unity3D file to the public directory. Example 3

[0037] Based on the same inventive concept as other embodiments, this embodiment introduces an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of a Unity3D file publishing method when executing the program. Example 4

[0038] Based on the same inventive concept as other embodiments, this embodiment introduces a computer storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the Unity3D file publishing method are implemented.

[0039] In summary, the present invention decouples large files such as Unity 3D from the front-end engineering code, and uploads them to the cloud OSS object storage in advance. In the front-end compilation and packaging stage, the Unity 3D file is downloaded from the OSS to the compilation server, so that the Unity 3D file is packaged into the front-end image, and the Unity 3D static resources are merged with the front-end packaged resources. Therefore, after the front-end engineering is released, the Unity 3D static resource file can be referenced to achieve complex 3D page effect presentation.

[0040] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0041] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0042] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0043] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0044] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.

Claims

1. A Unity3D file publishing method, It is characterized in that include: Upload the Unity3D files compiled in the development phase to the specified directory of the cloud object storage; Download the latest Unity3D file from the specified directory and pull the front-end engineering code from the Gitlab code repository; Compile and package the Unity3D file and front-end engineering code; Publish the packaged image file.

2. A Unity3D file publishing method according to claim 1, It is characterized in that The method further includes: creating a public directory in a designated storage space of the cloud object storage for storing Unity3D files; and creating a back directory for storing historical archive files.

3. A Unity3D file publishing method according to claim 2, It is characterized in that The method further includes: when executing the release operation, renaming the current Unity3D file in the public directory according to the upload time and moving it to the back directory, and uploading the latest Unity3D file to the public directory.

4. A Unity3D file publishing method according to claim 3, It is characterized in that During the packaging phase, use the OSS command line tool to download the latest Unity3D file from the public directory.

5. A Unity3D file publishing device, It is characterized in that include: The upload module is used to upload the Unity3D files compiled in the development phase to the specified directory of the cloud object storage; The acquisition module is used to download the latest Unity3D file from the specified directory and pull the front-end engineering code from the Gitlab code repository; A packaging module, used to compile and package the Unity3D file and the front-end engineering code; Release module, used to release packaged image files.

6. A Unity3D file publishing device according to claim 5, It is characterized in that Before receiving the uploaded file, the cloud object storage further includes: creating a public directory in the designated storage space for storing Unity3D files; and creating a back directory for storing historical archive files.

7. A Unity3D file publishing device according to claim 5, It is characterized in that The device also includes an update module, which is used to rename the current Unity3D file in the public directory according to the upload time and move it to the back directory when executing the release operation, and upload the latest Unity3D file to the public directory.

8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the program, the steps of a Unity3D file publishing method as described in any one of claims 1 to 4 are implemented.

9. A computer storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of a Unity3D file publishing method as described in any one of claims 1 to 4 are implemented.

Citation Information

Patent Citations

  • Method and a system for automatically deploying services in a Kubernetes cluster

    CN109491674A

  • Continuous integration method and device for software data, equipment and medium

    CN115576539A

  • Generating and deploying object code files compiled on build machines

    US20200293297A1