Compiled product release method and device, project compiling method and device, storage medium and equipment

By configuring alternative product release plug-ins in the project, the compiled products are released to domestic cloud storage services, which solves the problems of slow access speed of Maven warehouses and difficulty in managing and maintaining compiled products, and realizes convenient compiled product release and efficient development workflow.

CN120085907APending Publication Date: 2025-06-03SHENZHEN FALCON NETWORK MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510245880.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-28
Publication Date
2025-06-03

AI Technical Summary

Technical Problem

When the existing technology releases compiled products to the Maven warehouse, there are problems such as slow access speed or even inaccessibility in China, and compiled products are difficult to manage and maintain, which affects the work efficiency of developers and the user experience.

Method used

By configuring alternative product release plug-ins adapted to project management and construction tools in the project, replace the original product release process in the project management and construction tools with a custom product release process, and publish the compiled products to domestic cloud storage services.

Benefits of technology

It realizes the convenient release of compiled products to domestic cloud storage services, improves the work efficiency of developers, simplifies the management and maintenance of compiled products, and improves the user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120085907A_ABST
    Figure CN120085907A_ABST
Patent Text Reader

Abstract

The invention discloses a compiling product release method and device, a project compiling method and device, a storage medium and equipment, and relates to the technical field of software, and the method comprises the steps: obtaining a substitute product release plug-in matched with a project management and construction tool; configuring the substitute product publishing plug-in in a configuration file of a project to obtain a to-be-published project; performing construction processing on the to-be-published project through the project management and construction tool to obtain a compiled product, and replacing an original product publishing process in the project management and construction tool with a user-defined product publishing process through the substitute product publishing plug-in; and publishing the compiled product to a target cloud storage service through the custom product publishing process. According to the method, the compiling product can be conveniently published to the domestic cloud storage service, and the working efficiency of developers is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of software technology, and particularly to a method, device, storage medium, and equipment for publishing compilation products, project compilation. Background Art

[0002] Currently, many developers choose to publish compilation products through the Maven repository so that other users can obtain them through the dependency methods of project management and construction tools such as Gradle or Maven. However, due to various access restrictions and other issues, the Maven repository has problems such as slow domestic access speed or even inability to access, and difficulties in managing and maintaining compilation products, seriously affecting the work efficiency of developers and the user experience.

[0003] To solve these problems, there are means such as using mirror repositories, self-building Maven public network private servers, and using various synchronization tools to synchronize compilation products to cloud storage services. However, using mirror repositories has problems such as untimely synchronization speed, high maintenance costs, and still inconvenient product management and maintenance; self-building Maven public network private servers have high costs and require public network access support; using various self-created synchronization tools to synchronize to cloud storage services has the problem of inconvenient use due to non-uniform use of various self-created synchronization tools.

[0004] Therefore, there is currently a lack of a means to conveniently publish compilation products to domestic cloud storage services, which affects the work efficiency of developers. Summary of the Invention

[0005] Embodiments of this application provide a solution that can achieve convenient publishing of compilation products to domestic cloud storage services and improve the work efficiency of developers.

[0006] Embodiments of this application provide the following technical solutions:

[0007] According to an embodiment of this application, a method for publishing compilation products includes: configuring an alternative product publishing plugin adapted to project management and construction tools in a project; configuring the alternative product publishing plugin in a configuration file of the project to obtain a project to be published; performing a build process on the project to be published through the project management and construction tools to obtain compilation products, and replacing the original product publishing process in the project management and construction tools with a custom product publishing process through the alternative product publishing plugin; and publishing the compilation products to a target cloud storage service through the custom product publishing process.

[0008] In some embodiments of the present application, replacing the original product release process in the project management and build tool with a custom product release process through the alternative product release plugin includes: obtaining, through the alternative product release plugin, the release task of the project management and build tool for the project; replacing the original factory class instance for creating the native upload task of the product in the release task with a new factory class instance for creating the custom upload task; and in response to the trigger of the release task, creating the custom upload task through the new factory class instance to execute the custom product release process.

[0009] In some embodiments of the present application, releasing the compiled product to the target cloud storage service through the custom product release process includes: determining the target cloud storage service according to the predetermined service information in the custom product release process; uploading the compiled product to the target cloud storage service, where the target cloud storage service stores the compiled product in a storage bucket and organizes the dependency information of the compiled product in the product directory according to the standard directory structure of the project management and build tool.

[0010] In some embodiments of the present application, after configuring the alternative product release plugin in the configuration file of the project, the method further includes: configuring the upload verification information of the target cloud storage service in the configuration file; and uploading the compiled product to the target cloud storage service includes: performing upload verification to the target cloud storage service according to the upload verification information to obtain a verification result; and if the verification result is verification passed, uploading the compiled product to the target cloud storage service.

[0011] In some embodiments of the present application, the custom product release process includes predetermined service information corresponding to one or more cloud storage services; determining the target cloud storage service according to the predetermined service information in the custom product release process includes one of the following methods: determining all of the one or more cloud storage services as the target cloud storage service according to the predetermined service information corresponding to the one or more cloud storage services; or selecting, from the one or more cloud storage services, the cloud storage service matching the project as the target cloud storage service according to the predetermined service information corresponding to the one or more cloud storage services.

[0012] According to an embodiment of the present application, a project compilation method includes: obtaining project dependencies and service information of a project to be compiled; accessing a corresponding target cloud storage service according to the service information; downloading a compilation product corresponding to the project dependencies from the target cloud storage service, where the compilation product is published to the target cloud storage service according to the compilation product publishing method described in any embodiment of the present application; and adding the downloaded compilation product to the project to be compiled.

[0013] In some embodiments of the present application, the downloading of the compilation product corresponding to the project dependencies from the target cloud storage service includes: sending a product download request to the target cloud storage service through a project management and build tool, where the product download request includes the project dependencies organized in the standard directory structure of the project management and build tool; and receiving the compilation product corresponding to the project dependencies sent by the target cloud storage service, where the target cloud storage service queries dependency information corresponding to the project dependencies from a product directory and obtains the corresponding compilation product from a storage bucket.

[0014] According to an embodiment of the present application, a compilation product publishing device includes: a plugin acquisition module, configured to: acquire an alternative product publishing plugin adapted to a project management and build tool; a plugin configuration module, configured to: configure the alternative product publishing plugin in a configuration file of a project to obtain a project to be published; a project compilation module, configured to: perform a build process on the project to be published through the project management and build tool to obtain a compilation product, where the alternative product publishing plugin replaces the original product publishing process in the project management and build tool with a custom product publishing process; and a product publishing module, configured to: publish the compilation product to a target cloud storage service through the custom product publishing process.

[0015] According to an embodiment of the present application, a project compilation device includes: a configuration acquisition module, configured to: acquire project dependencies and service information of a project to be compiled; a service access module, configured to: access a corresponding target cloud storage service according to the service information; a product download module, configured to: download a compilation product corresponding to the project dependencies from the target cloud storage service, where the compilation product is published to the target cloud storage service according to the compilation product publishing method described in any embodiment of the present application; and a product addition module, configured to: add the downloaded compilation product to the project to be compiled.

[0016] According to another embodiment of the present application, a storage medium stores a computer program, which, when executed by a processor of a device, causes the device to execute the method described in the embodiments of the present application.

[0017] According to another embodiment of the present application, a device may include: a memory storing a computer program; and a processor that reads the computer program stored in the memory to execute the method described in the embodiments of the present application.

[0018] According to another embodiment of the present application, a computer program product or a computer program includes computer instructions stored in a computer-readable storage medium. The processor of the device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the device executes the methods provided in the various alternative implementation manners described in the embodiments of the present application.

[0019] In the embodiments of the present application, obtain an alternative product release plug-in adapted to the project management and build tool; configure the alternative product release plug-in in the configuration file of the project to obtain a project to be released; perform a build process on the project to be released through the project management and build tool to obtain a compiled product, and replace the original product release process in the project management and build tool with a custom product release process through the alternative product release plug-in; and release the compiled product to the target cloud storage service through the custom product release process.

[0020] In this way of the embodiments of the present application, by configuring the alternative product release plug-in in the configuration file of the project to obtain a project to be released, the project to be released can be built through the existing project management and build tool to obtain a compiled product. The alternative product release plug-in will replace the original product release process in the project management and build tool with a custom product release process, and then conveniently release the compiled product built by the existing project management and build tool to the target cloud storage service in the country for convenient maintenance management and efficient acquisition and use, so as to realize the convenient release of the compiled product to the cloud storage service in the country and improve the work efficiency of developers. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings required for the description of the embodiments. Obviously, the following drawings are only some embodiments of the present application. For those skilled in the art, other drawings can be obtained without creative efforts based on these drawings.

[0022] Figure 1 The flowchart of the compiled product release method according to an embodiment of the present application is shown.

[0023] Figure 2 The flowchart of the project compilation method according to an embodiment of the present application is shown.

[0024] Figure 3Shows a block diagram of a compiled product release device according to an embodiment of the present application.

[0025] Figure 4 Shows a block diagram of a project compilation device according to an embodiment of the present application.

[0026] Figure 5 Shows a block diagram of a device according to an embodiment of the present application. Detailed implementation manners

[0027] The present disclosure will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the embodiments provided herein are only used to explain the present disclosure and are not used to limit the present disclosure. In addition, the embodiments provided below are partial embodiments for implementing the present disclosure, rather than providing all embodiments for implementing the present disclosure. Without conflict, the technical solutions described in the embodiments of the present disclosure can be implemented in any combined manner.

[0028] It should be noted that in the embodiments of the present disclosure, the terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that a method or device including a series of elements not only includes the elements clearly recorded, but also includes other elements not explicitly listed, or also includes elements inherent to the implementation of the method or device. Without further limitation, the element defined by the statement "including one..." does not exclude the existence of other related elements in the method or device including the element (for example, steps in the method or units in the device, and the unit can be part of a circuit, part of a processor, part of a program or software, etc.).

[0029] For example, the compiled product release method provided in the embodiments of the present disclosure includes a series of steps, but the compiled product release method provided in the embodiments of the present disclosure is not limited to the recorded steps. Similarly, the compiled product release device provided in the embodiments of the present disclosure includes a series of units, but the device provided in the embodiments of the present disclosure is not limited to including the explicitly recorded units, and may also include units required for obtaining relevant information or processing based on information.

[0030] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field to which the present disclosure belongs. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present disclosure.

[0031] It can be understood that in the specific implementation manners of the present application, when related data is involved, when the embodiments in the present application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of related data need to comply with the relevant laws, regulations and standards of relevant countries and regions.

[0032] Figure 1 The flowchart of the compiled product release method according to an embodiment of the present application is schematically shown. The execution subject of the compiled product release method can be any device or server with the ability to release compiled products, such as a computer, a mobile phone, etc. for the device, and a cloud server or a physical server, etc. for the server.

[0033] As Figure 1 shown, the compiled product release method may include step S110 to step S140.

[0034] Step S110, obtain an alternative product release plugin adapted to the project management and build tool;

[0035] Step S120, configure the alternative product release plugin in the configuration file of the project to obtain a project to be released;

[0036] Step S130, perform a build process on the project to be released through the project management and build tool to obtain a compiled product, and replace the original product release process in the project management and build tool with a custom product release process through the alternative product release plugin;

[0037] Step S140, release the compiled product to the target cloud storage service through the custom product release process.

[0038] The project management and build tool is an existing tool such as Maven, Gradle, Ant, etc. for managing and building projects. In the embodiment of the present application, an alternative product release plugin adapted to the project management and build tool is obtained. For example, an alternative product release plugin adapted to Gradle is obtained. Specifically, the alternative product release plugin can be obtained from a specified location or can be obtained under the operation of the user.

[0039] The project usually includes project files such as source code files, resource files (such as pictures, audio, etc.), and configuration files (such as build.gradle files). The alternative product release plugin is configured in the configuration file of the project, and then a project to be released including the alternative product release plugin is obtained. The project to be released includes project files such as source code files, resource files (such as pictures, audio, etc.), and a configuration file (such as build.gradle file) configured with the alternative product release plugin.

[0040] The alternative product release plugin is used to replace the original product release process in project management and build tools with a custom product release process. When the project management and build tools trigger the release task for the project to be released and the project management and build tools can perform build processing on the project to be released to obtain the compiled product, at the same time, in the configuration file of the project to be released, the alternative product release plugin can replace the original product release process in the project management and build tools with a custom product release process.

[0041] The original product release process in project management and build tools is used to release the compiled product into the repository corresponding to the project management and build tools. For example, the original product release process of the gradle tool is used to release the compiled product into a foreign Maven repository.

[0042] By using the alternative product release plugin to replace the original product release process in project management and build tools with a custom product release process, through this custom product release process, the compiled products built by tools such as Maven, Gradle, and Ant can be conveniently released into the target cloud storage service in China. Through the target cloud storage service in China, it is not only convenient to maintain and manage the compiled products, but also can be efficiently obtained and used. Among them, the target cloud storage service can be an object storage service (OSS, Object Storage Service) such as Alibaba Cloud OSS, Tencent Cloud COS, and Huawei Cloud OBS.

[0043] In summary, in the way of this embodiment of the present application, by configuring the alternative product release plugin in the configuration file of the project to obtain the project to be released, the existing project management and build tools can be used to perform build processing on the project to be released to obtain the compiled product. The alternative product release plugin will replace the original product release process in the project management and build tools with a custom product release process, and then conveniently release the compiled products built by the existing project management and build tools into the target cloud storage service in China for convenient maintenance management and efficient acquisition and use, so as to realize the convenient release of the compiled product into the cloud storage service in China and improve the work efficiency of developers.

[0044] The following description Figure 1 Specific optional embodiments under each step when performing the release of the compiled product in the embodiment.

[0045] In one embodiment, the replacement of the original product release process in the project management and build tools with a custom product release process by the alternative product release plugin may include:

[0046] Obtain the release task of the project management and build tool for the project to be released through the alternative product release plug-in; replace the original factory class instance used to create the native upload task of the product in the release task with a new factory class instance used to create the custom upload task; in response to the trigger of the release task, create the custom upload task through the new factory class instance to execute the custom product release process.

[0047] After triggering the project management and build tool to execute the release task for the project to be released, the alternative product release plug-in can obtain the release task and replace the original factory class instance used to create the native upload task of the product in the release task with a new factory class instance used to create the custom upload task. Thus, the new factory class instance will be executed during the process of the project management and build tool executing the release task. Thus, the new factory class instance will create the custom upload task, and the custom upload task can execute the custom product release process. Thus, the original product release process in the project management and build tool can be reliably replaced with the custom product release process.

[0048] Further, in an embodiment, publishing the compiled product to the target cloud storage service through the custom product release process includes: determining the target cloud storage service according to the predetermined service information in the custom product release process; uploading the compiled product to the target cloud storage service, where the target cloud storage service stores the compiled product in a storage bucket and organizes the dependency information of the compiled product in the product directory according to the standard directory structure of the project management and build tool.

[0049] The custom product release process may include predetermined service information, which may be information related to the cloud storage service. According to this predetermined service information, it can be determined that the compiled product needs to be uploaded to the target cloud storage service.

[0050] After uploading the compiled product to the target cloud storage service, the target cloud storage service stores the compiled product in a storage bucket and organizes the dependency information of the compiled product in the product directory according to the standard directory structure of the project management and build tool. Thus, the compiled product can be reliably stored and managed, which is convenient for maintenance and management, and other users can use the project management and build tool to conveniently and accurately obtain the required compiled product from the domestic cloud storage service.

[0051] Further, in one embodiment, after configuring the replacement product release plug-in in the configuration file of the project, the method may further include: configuring upload verification information of the target cloud storage service in the configuration file; uploading the compiled product to the target cloud storage service includes: performing upload verification on the target cloud storage service according to the upload verification information to obtain a verification result; if the verification result is verification passed, then upload the compiled product to the target cloud storage service.

[0052] Configure the replacement product release plug-in in the configuration file of the project, and at the same time configure the upload verification information of the target cloud storage service in the configuration file. Thus, when uploading the compiled product to the target cloud storage service, first perform upload verification on the target cloud storage service according to the upload verification information to obtain a verification result. If the verification result is verification passed, then continue to upload the compiled product to the target cloud storage service, thereby further ensuring that the compiled product is successfully saved to the target cloud storage service.

[0053] Among them, if the verification result is verification failed, then do not upload the compiled product to the target cloud storage service.

[0054] Further, in one embodiment, the custom product release process includes predetermined service information corresponding to one or more cloud storage services; determining the target cloud storage service according to the predetermined service information in the custom product release process includes one of the following methods:

[0055] The first method is to determine all of the one or more cloud storage services as the target cloud storage service according to the predetermined service information corresponding to the one or more cloud storage services.

[0056] The second method is to select the cloud storage service matching the project from the one or more cloud storage services as the target cloud storage service according to the predetermined service information corresponding to the one or more cloud storage services.

[0057] In the first method, according to the predetermined service information corresponding to one or more cloud storage services, by default, all of the one or more cloud storage services are determined as the target cloud storage service. For example, if the custom product release process includes the predetermined service information corresponding to one cloud storage service, then only this one cloud storage service is determined as the target cloud storage service.

[0058] In the second method, selecting the cloud storage service matching the project from the one or more cloud storage services as the target cloud storage service according to the predetermined service information corresponding to the one or more cloud storage services can further improve the reliability of the compiled product release of the project.

[0059] Specifically, in the second method, the custom product release process may further include the matching relationship between different project types and cloud storage services. Thus, according to the project type of the current project, the cloud storage service matching the project type can be determined as the target cloud storage service according to the matching relationship, and the compiled product can be more reliably released to the target cloud storage service.

[0060] The embodiment of the present application also provides a project compilation method. As Figure 2 schematically shows a flowchart of a project compilation method according to an embodiment of the present application. The execution subject of this project compilation method can be any device with project compilation capabilities, such as a computer, a mobile phone, etc.

[0061] As Figure 2 shown, the compiled product release method may include steps S210 to S240.

[0062] Step S210, obtaining the project dependencies and service information of the project to be compiled; Step S220, accessing the corresponding target cloud storage service according to the service information; Step S230, downloading the compiled product corresponding to the project dependencies from the target cloud storage service, where the compiled product is the one released to the target cloud storage service according to the compiled product release method described in any embodiment of the present application; Step S240, adding the downloaded compiled product to the project to be compiled.

[0063] When other users perform project compilation and need to use the compiled products stored in the target cloud storage service, through the project management and build tools, they can obtain the project dependencies configured by the user (i.e., the dependencies added by the user to the project to be compiled) and the service information (i.e., the relevant access information of the target cloud storage service).

[0064] According to the service information through the project management and build tools, the corresponding target cloud storage service can be accessed, the compiled product corresponding to the project dependencies can be downloaded from the target cloud storage service, and the compiled product can be added to the project to be compiled. Thus, other users can efficiently obtain the required compiled products without inefficiently obtaining the compiled products from the Maven repository.

[0065] Further, the downloading of the compiled product corresponding to the project dependencies from the target cloud storage service includes: sending a product download request to the target cloud storage service through the project management and build tools, where the product download request includes the project dependencies organized in the standard directory structure of the project management and build tools; receiving the compiled product corresponding to the project dependencies sent by the target cloud storage service, where the target cloud storage service queries the dependency information corresponding to the project dependencies from the product directory and obtains the corresponding compiled product from the storage bucket.

[0066] After uploading the compilation product to the target cloud storage service, the target cloud storage service stores the compilation product in a storage bucket and organizes the dependency information of the compilation product in the product directory according to the standard directory structure of the project management and build tool.

[0067] Send a product download request to the target cloud storage service through the project management and build tool. The product download request includes the project dependencies organized according to the standard directory structure of the project management and build tool. Thus, the target cloud storage service can accurately query the dependency information corresponding to the project dependencies from the product directory according to the standard directory structure, and further obtain the corresponding compilation product from the storage bucket. Thus, other users can conveniently and accurately obtain the required compilation products from the domestic cloud storage service using the project management and build tool.

[0068] To facilitate better implementation of the compilation product release method provided in the embodiments of the present application, the embodiments of the present application further provide a compilation product release device based on the above compilation product release method. The meanings of the terms are the same as those in the above compilation product release method, and the specific implementation details can be referred to the description in the method embodiments. Figure 3 The block diagram of a compilation product release device according to an embodiment of the present application is shown.

[0069] As Figure 3 shown, the compilation product release device 300 may include: The plugin acquisition module 310 may be used to: acquire an alternative product release plugin adapted to the project management and build tool; The plugin configuration module 320 may be used to: configure the alternative product release plugin in the configuration file of the project to obtain the project to be released; The project compilation module 330 may be used to: perform a build process on the project to be released through the project management and build tool to obtain a compilation product, where the alternative product release plugin replaces the original product release process in the project management and build tool with a custom product release process; The product release module 340 may be used to: release the compilation product to the target cloud storage service through the custom product release process.

[0070] In some embodiments of the present application, the project compilation module 330 may be used to: obtain the release task of the project management and build tool for the project through the alternative product release plugin; replace the original factory class instance for creating the native upload task of the product in the release task with a new factory class instance for creating the custom upload task; in response to the trigger of the release task, create the custom upload task through the new factory class instance to execute the custom product release process.

[0071] In some embodiments of the present application, the product release module 340 may be configured to: determine the target cloud storage service according to the predetermined service information in the custom product release process; upload the compiled product to the target cloud storage service, where the target cloud storage service stores the compiled product in a storage bucket and organizes the dependency information of the compiled product in the product directory according to the standard directory structure of the project management and build tool.

[0072] In some embodiments of the present application, after the alternative product release plug-in is configured in the configuration file of the project, the plug-in configuration module 320 may be configured to: configure the upload verification information of the target cloud storage service in the configuration file; the product release module 340 may be configured to: perform an upload verification to the target cloud storage service according to the upload verification information to obtain a verification result; if the verification result is verification passed, upload the compiled product to the target cloud storage service.

[0073] In some embodiments of the present application, the custom product release process includes predetermined service information corresponding to one or more cloud storage services; the product release module 340 may be configured to implement one of the following methods: determine all of the one or more cloud storage services as the target cloud storage service according to the predetermined service information corresponding to the one or more cloud storage services; select the cloud storage service matching the project from the one or more cloud storage services as the target cloud storage service according to the predetermined service information corresponding to the one or more cloud storage services.

[0074] To facilitate better implementation of the project compilation method provided in the embodiments of the present application, the embodiments of the present application further provide a project compilation device based on the above project compilation method. The meanings of the nouns are the same as those in the above project compilation method, and the specific implementation details can refer to the description in the method embodiments. Figure 4 The block diagram of a project compilation device according to an embodiment of the present application is shown.

[0075] As Figure 4 shown, the project compilation device 400 may include: a configuration acquisition module 410 may be configured to: acquire the project dependencies and service information of the project to be compiled; a service access module 420 may be configured to: access the corresponding target cloud storage service according to the service information; a product download module 430 may be configured to: download the compiled product corresponding to the project dependencies from the target cloud storage service, where the compiled product is released to the target cloud storage service according to the compiled product release method described in any embodiment of the present application; a product addition module 440 may be configured to: add the downloaded compiled product to the project to be compiled.

[0076] In some embodiments of the present application, the product download module 430 may be configured to: send a product download request to the target cloud storage service through a project management and build tool, where the product download request includes the project dependencies organized in the standard directory structure of the project management and build tool; receive the compiled products corresponding to the project dependencies sent down by the target cloud storage service, where the target cloud storage service queries the dependency information corresponding to the project dependencies from the product directory and obtains the corresponding compiled products from the storage bucket.

[0077] It should be noted that although several modules or units of a device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more of the above-described modules or units may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided and embodied by multiple modules or units.

[0078] In addition, an embodiment of the present application further provides a device, as Figure 5 shown, Figure 5 shows a block diagram of a device according to an embodiment of the present application. Specifically:

[0079] The device may include a processor 501 with one or more processing cores, a memory 502 with one or more computer-readable storage media, a power supply 503, an input unit 504, and other components. Those skilled in the art can understand that Figure 5 the device structure shown in

[0080] does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or combine certain components, or have different component arrangements. Among them:

[0081] The memory 502 can be used to store software programs and modules. The processor 501 executes various functional applications and data processing by running the software programs and modules stored in the memory 502. The memory 502 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the computer device. In addition, the memory 502 can include high-speed random access memory and can also include non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices. Correspondingly, the memory 502 can also include a memory controller to provide the processor 501 with access to the memory 502.

[0082] The device also includes a power supply 503 for powering each component. Preferably, the power supply 503 can be logically connected to the processor 501 through a power management system, so as to realize functions such as management of charging, discharging, and power consumption management through the power management system. The power supply 503 can also include any components such as one or more DC or AC power supplies, a recharge system, a power failure detection circuit, a power converter or inverter, and a power status indicator.

[0083] The device may also include an input unit 504, which can be used to receive input digital or character information, and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.

[0084] Although not shown, the device may also include a display unit, etc., which will not be elaborated here. Specifically, in this embodiment, the processor 501 in the device will load the executable files corresponding to the processes of one or more computer programs into the memory 502 according to the following instructions, and the processor 501 will run the computer programs stored in the memory 502 to implement various functions in the foregoing embodiments of the present application.

[0085] For example, the processor 501 can execute the following steps:

[0086] Configure an alternative product release plugin adapted to project management and build tools in the project; configure the alternative product release plugin in the configuration file of the project to obtain the project to be released; perform a build process on the project to be released through the project management and build tools to obtain a compilation product, and replace the original product release process in the project management and build tools with a custom product release process through the alternative product release plugin; release the compilation product to the target cloud storage service through the custom product release process.

[0087] Another example is that the processor 501 can execute the following steps:

[0088] Obtain the project dependencies and service information of the project to be compiled; access the corresponding target cloud storage service according to the service information; download the compilation product corresponding to the project dependencies from the target cloud storage service, where the compilation product is the one published to the target cloud storage service according to the compilation product publishing method described in any embodiment of the present application; add the downloaded compilation product to the project to be compiled.

[0089] Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by a computer program or by controlling related hardware through a computer program. The computer program can be stored in a computer-readable storage medium and loaded and executed by a processor.

[0090] For this reason, an embodiment of the present application also provides a storage medium in which a computer program is stored. The computer program can be loaded by a processor to execute the steps in any method provided by the embodiments of the present application.

[0091] Among them, the storage medium can be a computer-readable storage medium, and the storage medium can include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), a magnetic disk or an optical disc, etc.

[0092] Since the computer program stored in the storage medium can execute the steps in any method provided by the embodiments of the present application, the beneficial effects that can be achieved by the methods provided by the embodiments of the present application can be realized. For details, see the previous embodiments and will not be repeated here.

[0093] According to another embodiment of the present application, a computer program product or a computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the device executes the methods provided in the various optional implementation manners described in the embodiments of the present application.

[0094] Those skilled in the art will readily think of other implementation manners of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses, or adaptations of the present application that follow the general principles of the present application and include known common knowledge or conventional technical means in the technical field not disclosed in the present application.

[0095] It should be understood that the present application is not limited to the embodiments described above and shown in the drawings, and various modifications and changes can be made without departing from its scope.

Claims

1. A method for publishing a compilation product, characterized in that: include: Configure alternative product publishing plugins that are compatible with project management and build tools in your project; Configuring the replacement product publishing plug-in in the configuration file of the project to obtain the project to be published; The project to be released is constructed and processed by the project management and construction tool to obtain a compiled product, and the native product release process in the project management and construction tool is replaced with a custom product release process by the alternative product release plug-in; The compiled product is published to the target cloud storage service through the custom product publishing process.

2. The method according to claim 1, characterized in that The replacing the native product release process in the project management and construction tool with the customized product release process by using the alternative product release plug-in includes: Obtaining, through the alternative product publishing plug-in, a publishing task of the project management and construction tool for the project to be published; Replace the original factory class instance used to create the product native upload task in the publishing task with a new factory class instance used to create a custom upload task; In response to the release task triggering, the custom upload task is created through the new factory class instance to execute the custom product release process.

3. The method according to claim 1, characterized in that Publishing the compiled product to the target cloud storage service through the customized product publishing process includes: Determining the target cloud storage service according to the predetermined service information in the custom product publishing process; The compilation product is uploaded to the target cloud storage service, wherein the target cloud storage service stores the compilation product in a storage bucket and organizes dependency information of the compilation product in a product directory according to a standard directory structure of the project management and build tool.

4. The method according to claim 3, characterized in that After configuring the substitute product publishing plug-in in the configuration file of the project, the method further includes: Configuring upload verification information of the target cloud storage service in the configuration file; The uploading the compiled product to the target cloud storage service includes: Performing upload verification on the target cloud storage service according to the upload verification information to obtain a verification structure; If the verification result is that the verification is passed, the compiled product is uploaded to the target cloud storage service.

5. The method according to claim 3, characterized in that: The custom product publishing process includes one or more predetermined service information corresponding to one or more cloud storage services; and determining the target cloud storage service according to the predetermined service information in the custom product publishing process includes one of the following methods: According to the predetermined service information corresponding to the one or more cloud storage services, the one or more cloud storage services are all determined as the target cloud storage service; According to the predetermined service information corresponding to the one or more cloud storage services, a cloud storage service matching the project is selected from the one or more cloud storage services as the target cloud storage service.

6. A project compilation method, characterized in that: include: Get the project dependencies and service information of the project to be compiled; Accessing the corresponding target cloud storage service according to the service information; Downloading a compilation product corresponding to the project dependency from the target cloud storage service, wherein the compilation product is published to the target cloud storage service according to the method of any one of claims 1 to 5; Add the downloaded compiled product to the project to be compiled.

7. The method according to claim 6, characterized in that The downloading the compilation product corresponding to the project dependency from the target cloud storage service includes: Sending a product download request to the target cloud storage service through a project management and construction tool, wherein the product download request includes the project dependencies organized in a standard directory structure of the project management and construction tool; Receive the compilation product corresponding to the project dependency issued by the target cloud storage service, wherein the target cloud storage service queries dependency information corresponding to the project dependency from a product directory and obtains the corresponding compilation product from a storage bucket.

8. A compilation product publishing device, characterized in that: include: The plugin acquisition module is used to: obtain alternative product release plugins that are compatible with project management and build tools; A plug-in configuration module is used to: configure the replacement product publishing plug-in in the configuration file of the project to obtain the project to be published; A project compilation module, used to: construct the project to be released through the project management and construction tool to obtain a compilation product, wherein the alternative product release plug-in replaces the native product release process in the project management and construction tool with a custom product release process; The product publishing module is used to publish the compiled product to the target cloud storage service through the customized product publishing process.

9. A storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor of a computer, the computer is caused to execute the method according to any one of claims 1 to 5 or 6 to 7.

10. A device, characterized in that: include: a memory storing a computer program; A processor reads a computer program stored in a memory to execute the method according to any one of claims 1 to 5 or 6 to 7.