CN112915546B - Resource file processing method and device, computer readable medium and electronic equipment - Google Patents

Resource file processing method and device, computer readable medium and electronic equipment Download PDF

Info

Publication number
CN112915546B
CN112915546B CN202110292292.0A CN202110292292A CN112915546B CN 112915546 B CN112915546 B CN 112915546B CN 202110292292 A CN202110292292 A CN 202110292292A CN 112915546 B CN112915546 B CN 112915546B
Authority
CN
China
Prior art keywords
file
resource file
resource
paths
path
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
CN202110292292.0A
Other languages
Chinese (zh)
Other versions
CN112915546A (en
Inventor
温亦库
张硕
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202110292292.0A priority Critical patent/CN112915546B/en
Publication of CN112915546A publication Critical patent/CN112915546A/en
Application granted granted Critical
Publication of CN112915546B publication Critical patent/CN112915546B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/60Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
    • A63F13/69Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor by enabling or updating specific game elements, e.g. unlocking hidden features, items, levels or versions
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/70Game security or game management aspects
    • A63F13/77Game security or game management aspects involving data related to game devices or game servers, e.g. configuration data, software version or amount of memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the application provides a resource file processing method and device, a computer readable medium and electronic equipment. The resource file processing method comprises the following steps: selecting a target file directory for resource file processing, wherein the target file directory comprises a plurality of resource list files, and the resource list files are used for storing resource file paths; respectively obtaining stored resource file paths from the plurality of resource list files, wherein the resource file paths stored in the resource list files are automatically obtained and stored in the resource list files according to the resource files selected by the corresponding file submitting party; and generating a resource file information list according to the acquired multiple resource file paths so as to process the resource files according to the resource file information list. According to the technical scheme, the resource file processing difficulty is simplified, and the resource file processing efficiency is improved.

Description

Resource file processing method and device, computer readable medium and electronic equipment
Technical Field
The present application relates to the field of computer and communication technologies, and in particular, to a resource file processing method and apparatus, a computer readable medium, and an electronic device.
Background
Most games on the market at present are collected aiming at hot update resource files, the manual collection mode of a packer is mostly adopted, namely all resource files needing hot update at this time are manually counted, and then manual packing and sorting are carried out.
Disclosure of Invention
Embodiments of the present application provide a resource file processing method and apparatus, a computer-readable medium, and an electronic device, so that the resource file processing difficulty is simplified at least to a certain extent, and the resource file processing efficiency is improved.
Other features and advantages of the present application will be apparent from the following detailed description, or may be learned by practice of the application.
According to an aspect of an embodiment of the present application, there is provided a resource file processing method, including: selecting a target file directory for resource file processing, wherein the target file directory comprises a plurality of resource list files, and the resource list files are used for storing resource file paths; respectively obtaining stored resource file paths from the plurality of resource list files, wherein the resource file paths stored in the resource list files are automatically obtained and stored in the resource list files according to the resource files selected by the corresponding file submitting party; and generating a resource file information list according to the acquired resource file paths so as to process the resource files according to the resource file information list.
According to an aspect of an embodiment of the present application, there is provided a resource file processing apparatus, including: the system comprises a selection unit, a processing unit and a processing unit, wherein the selection unit is configured to select a target file directory for resource file processing, the target file directory comprises a plurality of resource list files, and the resource list files are used for storing resource file paths; a first obtaining unit, configured to obtain stored resource file paths from the plurality of resource list files, respectively, where the resource file path stored in each resource list file is automatically obtained according to a resource file selected by a corresponding file submitting party and stored in the resource list file; and the generating unit is configured to generate a resource file information list according to the acquired multiple resource file paths so as to process the resource files according to the resource file information list.
In some embodiments of the present application, based on the foregoing solution, the apparatus further includes: the display unit is configured to display a file processing interface, the file processing interface comprises a file directory view area and a file submission view area, and the file directory view area is used for selecting the target file directory; the first receiving unit is configured to receive a submitting operation of a file submitting party for submitting the selected resource file to the file submitting view area; and the second acquisition unit is configured to respond to the submission operation, automatically acquire the resource file path corresponding to the selected resource file, and store the automatically acquired resource file path into the resource list file corresponding to the file submitting party.
In some embodiments of the present application, based on the foregoing solution, the apparatus further includes: a second receiving unit, configured to receive a trigger operation on a file directory included in the file directory view area, and select the target file directory according to the trigger operation, or receive a creation operation of the file directory performed in the file directory view area, and create and select the target file directory according to the creation operation.
In some embodiments of the present application, based on the foregoing solution, the file processing interface further includes a file list view area, where the file list view area includes resource files; the first receiving unit is configured to: and if the dragging operation that the file submitting party drags the resource file selected in the file list view area to the file submitting view area is detected, determining that the submitting operation is received.
In some embodiments of the present application, based on the foregoing scheme, the first receiving unit is configured to: and if the pasting operation that the file submitting party pastes the selected resource file path to the file submitting view area is detected, determining that the submitting operation is received.
In some embodiments of the present application, based on the foregoing solution, the apparatus further includes: the processing unit is configured to package the resource files pointed by the resource file paths contained in the resource file information list and generate a package result; checking the packaging result; and if the packed result passes the verification, issuing the packed result.
In some embodiments of the present application, based on the foregoing solution, the processing unit is configured to: acquiring an initial state identifier of the target file directory; and after the packaging result is issued, modifying the initial state identifier of the target file directory to obtain a modified state identifier, wherein the modified state identifier is used for identifying the target file directory to stop resource file processing.
In some embodiments of the present application, based on the foregoing solution, the processing unit is configured to: if the packed result is not verified, generating a file modification message; according to a target resource file path contained in the file modification message, modifying a resource file pointed by the target file path; and after the resource file pointed by the target file path is modified, repacking the resource files pointed by the resource file paths contained in the resource file information list to generate a new packing result.
In some embodiments of the present application, based on the foregoing solution, the processing unit is configured to: if the packed result is not verified, generating a file adding message; and sending the file adding message to the file submitter corresponding to each resource list file, wherein the file adding message is used for notifying the file submitter corresponding to each resource list file to reselect the resource file so as to update each resource list file according to the resource file path of the reselected resource file.
In some embodiments of the present application, based on the foregoing scheme, the generating unit is configured to: if a first resource file path exists in the plurality of resource file paths, the first resource file path is a resource file path which needs to use other resource file paths when the resource file information list is generated, and the other resource file paths are not stored in the resource list file, acquiring the other resource file paths; and performing conversion processing on the resource file paths and the other resource file paths to generate the resource file information list, wherein the resource file information list comprises the resource file paths and the other resource file paths.
In some embodiments of the present application, based on the foregoing scheme, the generating unit is configured to: if a second resource file path exists in the plurality of resource file paths, and the second resource file path is a resource file path which cannot be used when the resource file information list is generated, acquiring a resource file path associated with the second resource file path according to the second resource file path and the association relationship of the resource file paths; and converting resource file paths except the second resource file path and resource file paths related to the second resource file path in the plurality of resource file paths to generate the resource file information list, wherein the resource file information list comprises the resource file paths except the second resource file path and the resource file paths related to the second resource file path.
In some embodiments of the present application, based on the foregoing scheme, the generating unit is configured to: and performing conversion processing on the resource file paths to generate the resource file information list, wherein for resource file paths of the same type in the resource file paths, the resource file paths of the same type are associated by using the same name in the resource information list.
According to an aspect of an embodiment of the present application, there is provided a computer readable medium, on which a computer program is stored, the computer program, when executed by a processor, implements the resource file processing method as described in the above embodiment.
According to an aspect of an embodiment of the present application, there is provided an electronic device including: one or more processors; a storage device for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the resource file processing method as described in the above embodiments.
According to an aspect of an embodiment of the present application, there is provided a computer program product or a computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to cause the computer device to execute the resource file processing method provided in the above-described various alternative embodiments.
In the technical solutions provided in some embodiments of the present application, first, a target file directory for resource file processing is selected, where the target file directory includes a plurality of resource list files, and the resource list files are used to store resource file paths; then, the stored resource file paths can be respectively obtained from the plurality of resource list files, and the resource file paths stored in the resource list files are automatically obtained and stored in the resource list files according to the resource files selected by the corresponding file submitting party; and finally, generating a resource file information list according to the acquired multiple resource file paths so as to process the resource files according to the resource file information list. Therefore, compared with a mode of manually filling in the resource file path, in the technical scheme of the embodiment of the application, in the resource file processing process, the resource file path is automatically acquired according to the resource file selected by the file submitting party and is stored in the resource list file, so that the consumption of manpower is reduced, the problem of mistaken filling of the resource file path due to human factors is solved, and the processing efficiency and the accuracy of the resource file are improved. In addition, according to the technical scheme of the embodiment of the application, the resource file information list can be directly generated according to the acquired multiple resource file paths so as to process the resource files, the resource file information list is not generated in a manual conversion mode, and the manual conversion mode needs related personnel to deeply understand the conversion mechanism, so that compared with the manual conversion mode, the difficulty in processing the resource files can be reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and, together with the description, serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the application, and that for a person skilled in the art, other drawings can be derived from them without inventive effort. In the drawings:
FIG. 1 is a schematic diagram of an exemplary resource file processing system to which aspects of embodiments of the present application may be applied;
FIG. 2 shows a flow diagram of a resource file processing method according to one embodiment of the present application;
FIG. 3 illustrates a flow diagram of a resource file processing method according to one embodiment of the present application;
FIG. 4 shows a schematic diagram of a document processing interface according to an embodiment of the present application;
FIG. 5 shows an interface diagram of a page menu according to an embodiment of the application;
FIG. 6 illustrates a schematic interface diagram for creating a file directory according to one embodiment of the present application;
FIG. 7 shows a schematic diagram of a document processing interface according to an embodiment of the present application;
FIG. 8 illustrates an interface diagram for creating a resource file list according to one embodiment of the present application;
FIG. 9 illustrates an interface diagram for dragging a resource file according to one embodiment of the present application;
FIG. 10 illustrates an interface diagram of a resource file log according to one embodiment of the present application;
FIG. 11 illustrates an interface diagram of a document processing interface, according to an embodiment of the present application;
FIG. 12 illustrates an interface diagram for deleting a resource file path according to an embodiment of the present application;
FIG. 13 shows a flow diagram of a resource file processing method according to one embodiment of the present application;
FIG. 14 shows a flow diagram of a resource file processing method according to one embodiment of the present application;
FIG. 15 shows a flow diagram of a resource file processing method according to an embodiment of the present application;
FIG. 16 shows a flow diagram of a resource file processing method according to one embodiment of the present application;
FIG. 17 illustrates a logic diagram of a resource file processing method according to one embodiment of the present application;
FIG. 18 is a diagram illustrating a prompt interface for completing the downloading of packaged results at a game application client when the resource file processing method according to an embodiment of the present application is applied to a game application hot update scenario;
FIG. 19 shows a block diagram of a resource file processing apparatus according to an embodiment of the present application;
FIG. 20 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present application.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the application. One skilled in the relevant art will recognize, however, that the subject matter of the present application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and so forth. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the application.
It is to be noted that the terms used in the specification and claims of the present application and the above-described drawings are only for describing the embodiments and are not intended to limit the scope of the present application. It will be understood that the terms "comprises," "comprising," "includes," "including," "has," "having," and the like, when used herein, specify the presence of stated features, integers, steps, operations, elements, components, and/or groups thereof, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It will be further understood that, although the terms first, second, third, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element could be termed a second element without departing from the scope of the present invention. Similarly, a second element may be termed a first element. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The block diagrams shown in the figures are functional entities only and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor means and/or microcontroller means.
The flow charts shown in the drawings are merely illustrative and do not necessarily include all of the contents and operations/steps, nor do they necessarily have to be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the actual execution sequence may be changed according to the actual situation.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more.
Before further detailed description of the embodiments of the present application, terms and expressions referred to in the embodiments of the present application will be described, and the terms and expressions referred to in the embodiments of the present application will be used for the following explanation.
Hot updating: the method is a common updating mode for a plurality of application programs such as various large tours, and in brief, the method is an instant updating mode when a user opens the application program, so that a developer can repair bugs and release functions without releasing a new version, the developer can bypass an auditing mechanism, and the cost caused by long-time auditing waiting and repeated refusal is avoided.
SVN: subversion is a source code version control system, and files such as resources and codes of project development are stored in the system, and updated versions of the resources and the codes can be obtained through the SVN.
The resource file processing method provided by the embodiment of the application can be applied to various scenes.
For example, in a hot update scenario for a gaming application. During the hot update process of the game application, the publisher of the game application often needs to process, such as collecting, packaging, testing and publishing the hot update resource file. Specifically, a publisher of the game application collects a hot update resource file, generates a hot update resource file package in a background, sends the hot update resource file package to a client of the game application through a server in the background, and the client analyzes and acquires update information from the hot update resource file package and updates activity configuration data of the client according to the update information. The client may then present the corresponding game activity to the user based on the updated activity configuration data.
However, currently, a manual collection method is mostly adopted for collecting hot update files, and collection of hot update resource file paths is manually performed before game hot update resources are released. The hot update resource file path is usually collected by using an Excel form, and because human factors are too heavy, the accuracy of submitting the resource file path by each person is difficult to control, so that the problem that the collected hot update resource file is frequently processed unsuccessfully is caused. After the hot updated resource file path list is collected manually, the collected resource list needs to be converted through a certain rule. Because the collected hot updated resource file path list is different from the hot updated resource file path list finally transmitted to the game engine side, the hot updated resource file path list needs to be converted manually before being transmitted to the game engine side.
The problems caused by the above hot update file collection method mainly include: (1) The manual collection of the hot resource file path list consumes much manpower. Not only a single person is needed to carry out statistical work, but also all the related personnel who need to issue the hot updated resource file need to deeply understand the conversion mechanism of the hot updated resource file to a certain extent, so that the issue of the hot updated resource file becomes very complicated; (2) Because the hot update resource file path list is collected manually, the error probability is very high. If the packaging of the subsequent hot updated resource file fails due to human errors (such as wrong path writing, irregular path, missing resource file path, etc.), it is very difficult to find the error point.
Therefore, in order to solve the problems of error proneness and low efficiency in processing the hot updated resource file, the resource file processing method provided in the embodiment of the present application may be adopted, first, selecting a target file directory for processing the resource file, where the target file directory includes a plurality of resource list files, and the resource list files are used for storing resource file paths; then, respectively obtaining stored resource file paths from the plurality of resource list files, wherein the resource file paths stored in the resource list files are automatically obtained and stored in the resource list files according to the resource files selected by the corresponding file submitting party; and finally, generating a resource file information list according to the acquired multiple resource file paths so as to process the resource files according to the resource file information list.
Compared with a mode of manually collecting hot updated resource files, the technical scheme of the embodiment of the application is that the resource file paths are automatically obtained and stored in the resource list file, so that the probability of path misfilling caused by human factors is reduced, and the efficiency of resource file processing is improved. In addition, the technical scheme does not need manual conversion after the resource files are collected, but can directly generate a resource file information list so as to process the resource files according to the resource file information list. Because the manual conversion mode requires deep knowledge of the conversion mechanism by related personnel, the manual conversion mode is not used in the embodiment, and the difficulty of resource file processing can be greatly reduced by the technical scheme of the embodiment.
It should be noted that the above application scenario is only an illustrative example, and does not constitute a limitation on the application scenario of the technical solution in the embodiment of the present application, and the technical solution in the embodiment of the present application is not limited to resource file processing for game applications, and may also be a scenario of resource file processing for various application programs, such as an instant messaging program and an electronic payment program.
Fig. 1 shows a schematic diagram of an exemplary resource file processing system to which the technical solution of the embodiment of the present application can be applied.
As shown in fig. 1, the resource file processing system 100 may include a plurality of terminal devices 101 and a resource file processing platform 102.
The terminal device 101 may be connected to the resource file processing platform 102 via a wireless network or a wired network. The terminal device 101 may be at least one of a desktop computer, a laptop computer, a tablet computer, a smart phone, and a personal digital assistant. The terminal device 101 may install and run the relevant client. Such as a client pre-installed in the terminal device 101 or a client embedded in a third party application. In an embodiment of the present application, the terminal device 101 may be a terminal device used by a user, and an account of the user is logged in a client running on the terminal device 101. The client may have a file processing interface display function, and after the client is started, the client may display a file processing interface, and a user of the terminal device 101 may implement the resource file processing function through the file processing interface.
The resource file processing platform 102 includes at least one of a server, a plurality of servers, and a cloud computing platform, for example, the cloud computing platform may be a cloud server for providing basic cloud computing services such as a cloud service, a cloud database, cloud computing, a cloud function, cloud storage, a web service, cloud communication, a middleware service, a domain name service, a security service, a Content Delivery Network (CDN), and a big data and artificial intelligence platform.
The resource file processing platform 120 is configured to provide background services of the terminal device 101, such as user management, resource file processing, and the like. Optionally, the resource file processing platform 102 may include: a processing server 1, a packaging server 2 and a version control system 3. The processing server 1 is configured to provide background services for resource file processing, for example, select a target file directory, obtain a resource file path, generate a resource file information list, and the like. The packing server 2 is mainly used for packing the resource files to generate a packing result. The version control system 3 is configured to manage updating of the resource file, a resource file log may be stored in the version control system 3, the resource file log includes a record of updating of the resource file by a user of the terminal device 101, and the terminal device 101 may obtain the resource file log from the version control system 3 and then select the resource file according to the obtained resource file log.
It should be noted that the terminal device 101 may refer to one of a plurality of terminal devices, and this embodiment is only illustrated by the terminal device 101. Those skilled in the art will appreciate that the number of terminal devices described above may be greater or fewer. For example, the number of the terminal devices may be only one, or the number of the electronic devices may be tens or hundreds, or more. The number and the type of the terminal devices are not limited in the embodiment of the application.
The implementation details of the technical solution of the embodiment of the present application are set forth in detail below:
FIG. 2 illustrates a flow diagram of a resource file processing method according to one embodiment of the present application that may be performed by a resource file processing system, which may be the resource file processing system 100 shown in FIG. 1. Referring to fig. 2, the resource file processing method includes:
step S210, selecting a target file directory for resource file processing, wherein the target file directory comprises a plurality of resource list files, and the resource list files are used for storing resource file paths;
step S220, respectively obtaining stored resource file paths from a plurality of resource list files, wherein the resource file paths stored in the resource list files are automatically obtained and stored into the resource list files according to the resource files selected by the corresponding file submitters;
step S230, generating a resource file information list according to the acquired multiple resource file paths, so as to perform resource file processing according to the resource file information list.
These steps are described in detail below.
Step S210, selecting a target file directory for resource file processing, where the target file directory includes a plurality of resource list files, and the resource list files are used for storing resource file paths.
To implement the processing of the resource file, the execution principal may first select a target file directory for resource file processing. It should be noted that a plurality of file directories may be included in the same engineering project, where the file directories are used to process resource files of the engineering project, and the resource files processed by different file directories may have the same time or different times, and there may be an intersection between the resource files processed by different file directories.
For example, in the process of developing a game using Unity, a plurality of file directories may be included in one Unity project, and different file directories may be used to process game resource files in Unity projects at different points in time, or may be used to process game resource files in Unity projects at the same point in time. Unity is a multi-platform, integrated game development tool that lets players easily create types of interactive content such as three-dimensional video games, building visualizations, real-time three-dimensional animations, and the like.
In this embodiment, the type of the resource file is not particularly limited, and may include, but is not limited to, resource files such as an audio resource, a video resource, an image resource, and a text resource. The selected target file directory is also the currently selected file directory for resource file processing. The target file directory may include a plurality of resource list files, where the resource list files are used to store resource file paths, and the resource file paths refer to storage paths of the resource files.
Step S220, respectively obtaining stored resource file paths from the multiple resource list files, where the resource file path stored in each resource list file is automatically obtained according to the resource file selected by the corresponding file submitting party and stored in the resource list file.
Since the resource list file stores the resource file path, after the target file directory is selected, the stored resource file path can be obtained from the plurality of resource list files included in the target file directory.
It should be emphasized that the resource file path stored in each resource list file is automatically obtained according to the resource file selected by the corresponding file submitting party and stored in the resource list file. Specifically, each resource list file has a corresponding file submitting party, the file submitting party can select a resource file, after the file submitting party selects the resource file to submit, the execution main body can automatically acquire a resource file path according to the resource file selected by the file submitting party, and store the automatically acquired resource file path into the resource list file.
Therefore, on one hand, compared with manual filling of the resource file path, the technical scheme of the embodiment is to automatically acquire the resource file path and store the resource file path into the resource list file, so that the consumption of manpower can be reduced, the efficiency is higher, the problem of wrong filling of the resource file path due to human factors can be avoided, and the accuracy of the resource file path stored into the resource list file is ensured; on the other hand, in the technical scheme of the embodiment, the resource file path corresponding to the resource file selected by the file submitting party is stored in the resource list file, but not all resource file paths, so that the storage load is reduced, and the flexibility is higher.
Step S230, generating a resource file information list according to the acquired multiple resource file paths, so as to perform resource file processing according to the resource file information list.
Specifically, after the stored resource file paths are respectively obtained from the plurality of resource list files, the resource file information list may be further generated according to the obtained resource file paths.
It should be noted that the generated resource file information list may include resource file paths, and inconsistency may exist between the resource file paths included in the resource file information list and the obtained multiple resource file paths.
Since the resource file information list includes the resource file path, and the resource file path represents the storage path of the resource file, after the resource file information list is generated, the resource file may be processed according to the resource file information list, specifically, the resource file pointed by the resource file path may be acquired according to the resource file path included in the resource file information list, and then the acquired resource file may be processed, for example, the resource file may be packaged and released.
Based on the technical scheme of the embodiment, in the resource file processing process, the resource file path stored in the plurality of resource list files contained in the target file directory can be further obtained by selecting the target file directory, and the resource file path in the embodiment is obtained automatically according to the resource file selected by the file submitting party and stored in the resource list file. In addition, according to the technical scheme, manual conversion is not needed after a plurality of resource file paths are obtained, and a resource file information list can be directly generated so as to process the resource files according to the resource file information list. Because the manual conversion mode requires that related personnel have to deeply understand the conversion mechanism, the embodiment does not adopt the manual conversion mode any more, and the difficulty of processing the resource file can be greatly reduced.
In one embodiment of the present application, the resource file path processing method may be performed through a visualized file processing interface. In this embodiment, as shown in fig. 3, the resource file processing method may further specifically include steps S310 to S330, which are described in detail as follows:
step S310, a file processing interface is displayed, the file processing interface comprises a file directory view area and a file submission view area, and the file directory view area is used for selecting a target file directory.
In this embodiment, a client may be installed on a terminal device used by a file submitting party, the client may display a file processing interface after being started, and the file submitting party may directly perform related operations of resource file processing on the file processing interface.
Specifically, the file handling interface may include a file directory view area and a file submission view area. The file directory view area is a view area containing a file directory, the view area can be used for selecting a target file directory, the file submission view area is a view area for resource file submission, and the view area can be used for acquiring a resource file path.
In some embodiments, the selection of the target file directory in the file directory view area may be performed by receiving a trigger operation on a file directory included in the file directory view area, and selecting the target file directory according to the trigger operation.
In other embodiments, the selection of the target file directory in the file directory view area may also be performed by receiving a creation operation of the file directory performed in the file directory view area, and creating and selecting the target file directory according to the creation operation.
Referring to fig. 4, fig. 4 is a schematic diagram of a document processing interface according to an embodiment of the present application. As shown in fig. 4, the file processing interface includes a file directory view area and a file submission view area. The view area pointed to by the symbol "(1)" is a file directory view area, and the view area pointed to by the symbol "(2)" is a file submission view area. As can be seen from FIG. 4, the file directory view area includes a plurality of file directories, such as file directory M5W5, file directory M6W1, etc., where ">" indicates that the file directory M6W1 is the selected target file directory.
The following describes the creation operation of the file directory in the file directory view area with reference to fig. 4, and the creation operation of the file directory in the file directory view area may specifically include the following operationsThe method comprises the following steps: (1) Through the file (F) in the menu bar>Creation->Creating a file directory for creating operation; (2) Creating operation is carried out by operating a shortcut key by a user, such as a keyboard shortcut key Ctrl + A; (3) Clicking on the toolbar
Figure BDA0002982750800000131
Carrying out creation operation; (4) And right clicking in the view area of the file directory to pop up a menu shown in fig. 5, wherein the popped-up menu comprises a 'create file directory' option, and clicking the 'create file directory' option to pop up a window for creating the file directory, as shown in fig. 6, inputting a file directory name in the 'file directory name' column to complete the creation operation.
It should be noted that, in addition to the creation operation of the file directory in the file directory view area, the removal operation and the trigger operation may be performed on the file directory. Specifically, the removing operation of the file directory may include: (1) Executing a removal operation by a user operating a shortcut key, such as a keyboard shortcut key Ctrl + R; (2) Selecting a certain file directory in the file directory view area to perform right click, popping up a menu as shown in fig. 5, wherein the popped-up menu comprises a 'remove file directory' option, and removing the selected file directory can be performed by clicking the 'remove file directory' option.
As described above, the target file directory may be selected according to the triggering operation on the file directory, and specifically, the triggering operation on the file directory may specifically include the following several ways: (1) Selecting a certain file directory in the file directory view area, and selecting the file directory as a target file directory by operating a shortcut key by a user, such as a keyboard shortcut key Ctrl + D; (2) Selecting a certain file directory in the file directory view area for right click, popping up a menu as shown in fig. 5, wherein the popped-up menu comprises a selection item of selecting as a target file directory, and the selected file directory can be selected as the target file directory by clicking the selection item of selecting as the target file directory.
Referring next to fig. 7, fig. 7 is a schematic diagram illustrating a document processing interface according to an embodiment of the present application. As shown in fig. 7, the target file directory M6W1 includes a plurality of resource list files, such as "album sns. Khres", "book pages. Khres", and the like.
It should be noted that the creation operation and the removal operation may be performed on the resource list file included in the file directory as well. The following description is made with reference to fig. 7 and fig. 8, where the creating operation of the resource list file may specifically include the following ways: (1) Through the file (F) in the menu bar>Creation->Creating a resource file list for creating operation; (2) Creating operation is carried out by operating a shortcut key by a user, such as a keyboard shortcut key Ctrl + N; (3) Click on the toolbar
Figure BDA0002982750800000141
Carrying out creation operation; (4) And right clicking in the file directory view area to pop up a dialog box as shown in fig. 8, inputting the name of the created resource list file in the popped up dialog box, and clicking a save button to create a resource list file after confirming that no resource list file with the same name exists in the target file directory.
Continuing with fig. 7, the removal operation of the resource list file is described, and the manner of the removal operation may be: a certain file directory is selected in the file directory view area for right click, and a "remove resource list file" option is selected in the popped menu shown in fig. 5, so that the selected resource list file can be removed.
Continuing with FIG. 3, in step S320, a commit operation is received in which the file submitter submits the selected resource file to the file submission view area.
After the file processing interface is displayed, the file submitting parties corresponding to the resource list files can operate on the file processing interface to complete submission of the resource files. Specifically, the file submitting party may submit the selected resource file to a file submitting view area in the file processing interface, and the execution subject may receive a submission operation that the file submitting party submits the selected resource file to the file submitting view area.
In some embodiments, the file processing interface further includes a file list view area, where the file list view area includes the resource file, and the performing of the submitting operation of the main body for receiving the selected resource file from the file submitting party and submitting the selected resource file to the file submitting view area may specifically include: and if the dragging operation that the file submitting party drags the resource file selected in the file list view area to the file submitting view area is detected, determining that the submitting operation is received.
In this embodiment, the file processing interface further includes a file list view area, and the file list view area includes the resource file, so that the file submitting party can directly select the resource file from the file list view area, and then drag the selected resource file to the file submitting view area in the file processing interface.
Schematically, fig. 9 shows a schematic view of a document processing interface according to an embodiment of the present application. As shown in fig. 9, the file processing interface further includes a file list view area, where the file list view area is a view area pointed by an arrow marked by a "(3)" symbol, and the file list view area includes the resource file. The file submitting party can select resource files in the file list view area, the selected resource files can be the resource files which need to be submitted to the resource list files contained in the target file directory for storage, and finally the selected resource files are moved to the file submitting view area through dragging operation.
Here, when the input operation body of the terminal device is a mouse, the dragging operation may be that the file submitting party performs dragging through the mouse; when the input operation body of the terminal device is a finger, a touch pen, or the like, the dragging operation may be a file submitting party dragging by a finger or a touch pen.
In some embodiments, the submitting operation of the execution subject to receive the file submitter to submit the selected resource file to the file submission view area may be: and if the pasting operation that the file submitting party pastes the selected resource file path to the file submitting view area is detected, determining that the submitting operation is received.
In this embodiment, after selecting a resource file, the file submitting party may directly perform a copy operation on a resource file path corresponding to the selected resource file, and paste the copied resource file path into the file submitting view area after the copy operation. If a paste operation is detected in which the file submitter pastes the selected resource file path to the file submission view area, it may be determined that a submit operation by the file submitter is received.
In some embodiments, the method for the file submitting party to copy the selected resource file path may specifically include: firstly, a resource file log is obtained from a version control system, the resource file log comprises resource file paths, then, the resource file paths contained in the resource file log are copied, and the copied resource file paths are the resource file paths selected by a file submitting party and are not all the resource file paths contained in the resource file log.
It should be noted that the version control system is used for controlling the version of the resource file, and may be, for example, git or SVN. Version control refers to management of file changes such as various program codes, configuration files, and description documents during software development. Specifically, in this embodiment, the version control of the resource file is also management of the update of the resource file. For each version update operation of the resource file submitted to the version control system, the version update operation may be recorded in a resource file log, and the resource file log may include resource file paths corresponding to the resource files of the respective versions. Therefore, after the file submitting party obtains the resource file log from the version control system, the copying operation can be performed on the resource file path contained in the resource file log.
Referring to fig. 10, a schematic interface diagram of a resource file log is shown according to an embodiment of the present application. Wherein, the interface of the resource file log can be selected from the file processing interfaces shown in fig. 4, fig. 7 and fig. 9
Figure BDA0002982750800000161
And generating and displaying an icon trigger. The resource file path is included in the interface of the resource file log, so that after the interface of the resource file log is obtained, the file submitting party can directly copy the resource file path displayed in the interface of the resource file log.
With continued reference to fig. 3, in step S330, in response to the submitting operation, a resource file path corresponding to the selected resource file is automatically acquired, and the automatically acquired resource file path is stored in a resource list file corresponding to the file submitting party.
After the file submitting party submits the selected resource file to the file submitting view area included in the file processing interface, the execution main body can respond to the submitting operation of the file submitting party, automatically acquire the resource file path corresponding to the selected resource file, and simultaneously store the automatically acquired resource file path into the resource list file corresponding to the file submitting party.
Referring to FIG. 11, FIG. 11 shows an interface diagram of a document processing interface, according to an embodiment of the present application. As can be seen from fig. 11, after the resource list file "jisingis.khres" is selected in the file directory view area, the resource file path stored in the selected resource list file "jisingis.khres" can be viewed in the file submission view area.
It should be further noted that, a deletion operation may also be performed on the resource file path stored in the resource list file, as shown in fig. 12, after the resource list file is selected, the resource file path to be deleted may be directly selected in the file submission view area, and the deletion operation may be performed.
It should be noted that fig. 4 to fig. 12 are only examples of the operation interface, and the position and the shape of any icon do not constitute a limitation on the embodiment of the present application.
In an embodiment of the present application, as shown in fig. 13, the resource file processing according to the resource file information list may specifically include steps S1310 to S1330, which are described in detail as follows:
step S1310, package the resource file pointed by the resource file path included in the resource file information list, and generate a package result.
Since the resource file information list includes the resource file path, and the resource file path represents the storage path of the resource file, after the resource file information list is generated, the resource file can be processed according to the resource file information list, and specifically, the resource file pointed by the resource file path acquired from the resource file path included in the resource information list can be packaged to generate a packaging result.
Specifically, the packing parameter configuration may be performed in advance, and then the resource file packing is performed based on the packing parameter, so as to generate a packing result. The packing configuration parameters may include at least one of: a packed version, a packed address, a packed type, etc.
And step S1320, checking the packaging result.
After generating the packing result and before issuing the packing result, the packing result may be checked, for example, whether the name of the packing result is correct, whether the resource file is wrong, whether the specified resource file is missing, or the like.
Step S1330, if the verification of the packing result passes, issuing the packing result.
If the verification of the packaging result is passed, the packaging result can be directly issued, and the issuing of the packaging result can enable a user needing to acquire the resource file to download the packaging result.
For example, in an application scenario of a hot update of a game application, after a packaged result of a hot update resource file is released, a terminal device installed with the game application may download the packaged result for updating the game application.
In an embodiment of the present application, the state of the file directory may be further defined by the state identifier, so as to determine whether the file directory stops processing the resource file according to the state. Specifically, if the target file directory is selected for resource file processing and the packaging result is issued, the initial state identifier of the target file directory may be modified to obtain a modified state identifier, which is used to indicate that the target file directory stops resource file processing.
The initial state identifier is used for identifying that the target file directory is in an unprocessed state or a selected state, and the modified state identifier is used for identifying that the target file directory is in a processed state. The unprocessed state may be that the file directory does not start resource file processing, the selected state may be that the file directory is performing resource file processing, and the processed state may be that the file directory has stopped performing resource file processing.
The significance of defining the state of the file directory through the state identification is that the global management of all the file directories can be realized according to the state of the file directory, the state information of the file directories is convenient to know, and if the problem occurs in the subsequent issuing and packaging result, the problem can be conveniently traced through the file directories, and the reason can be found in time.
In an embodiment of the present application, the packed result may be directly issued when the packed result is verified and the verification passes. However, if the checking of the package result fails, as shown in fig. 14, the resource file processing method may further include:
step S1410, if the packaging result is not verified, generating a file modification message;
step S1420, according to the target resource file path contained in the file modification message, modifying the resource file pointed by the target file path;
step S1430, repackaging the resource file pointed by the resource file path included in the resource file information list after modifying the resource file pointed by the target file path, and generating a new packaging result.
In this embodiment, that the packed result fails to pass the verification means that the packed result does not meet the preset verification condition, and for this situation, the packed result needs to be regenerated.
Specifically, when the packed result is not verified, a file modification message may be generated first; then, according to the target resource file path contained in the file modification message, modifying the resource file pointed by the target file path; and finally, after the resource file pointed by the target file path is modified, repackaging the resource file pointed by the resource file path contained in the resource file information list to generate a new packaging result.
In other embodiments of the present application, if the verification of the packaging result fails, the resource file may not need to be modified, but the resource file needs to be added.
After receiving the file addition message, the file submitting party corresponding to each resource list file can reselect the resource file according to the file addition message and add the resource file to the corresponding resource list file, so as to update the resource list file.
In an embodiment of the present application, according to multiple acquired resource file paths, a manner of generating a resource file information list may be different according to different resource file paths, as shown in fig. 15, step S230 may include steps S1510 to S1520, which are specifically described as follows:
step S1510, if there is a first resource file path in the plurality of resource file paths, where the first resource file path is a resource file path that needs to use other resource file paths when generating the resource file information list, and the other resource file paths are not stored in the resource list file, acquiring the other resource file paths.
Specifically, when the resource file information list is generated, if a first resource file path exists in the acquired resource file paths, other resource file paths may be automatically acquired when the resource file information list is generated.
It should be noted that the first resource file path is a resource file path that needs to use another resource file path when generating the resource file information list, and the other resource file path is not stored in the resource list file.
Step S1520, performing conversion processing on the multiple resource file paths and other resource file paths to generate a resource file information list, where the resource file information list includes the multiple resource file paths and other resource file paths.
After it is determined that a first resource file path exists in the multiple resource file paths and other resource file paths that need to be used when the first resource file path generates the resource file information list are acquired, the acquired multiple resource file paths and other resource file paths can be converted to generate the resource file information list.
The specific conversion processing mode may be: the first resource file path and other resource file paths are associated by using the same resource name, the resource path corresponding to the resource name comprises the first resource file path and other resource paths, and the resource file paths except the first resource file path in the plurality of resource file paths are converted to obtain a resource name and the resource file path.
For example, assuming that the obtained multiple resource file paths are a, B, C, and D, respectively, where a is a first resource file path, and another resource file path that needs to be used when the first resource file path a generates the resource file information list is E, after obtaining the other resource file path E, the multiple resource file paths a, B, C, and D and the other resource file path E may be converted to generate the resource file information list. The generated resource file information list may include a resource name 1, a resource name 2, a resource name 3, a resource name 4, and a resource name 5, where the resource name 1 corresponds to a first resource file path a and other resource file paths E, the resource name 2 corresponds to a resource file path B, the resource name 3 corresponds to a resource file path C, and the resource file 4 corresponds to a resource file path D.
In the related art, a manual conversion processing mode is usually adopted when processing a resource file path, and the manual conversion mode requires that related personnel have to have a certain degree of deep knowledge about a conversion processing mechanism, so that the whole conversion processing process becomes complicated and cumbersome.
Compared with the manner of generating the resource file information list by adopting manual conversion processing in the related art, the method and the device for generating the resource file information list can realize automatic conversion processing of the resource file path, so that the resource file information list is generated. The file submitting party does not need to care which resource file paths need to be used when the resource file information list is generated through conversion processing, and only needs to submit the resource file according to the selected resource file, even if other resource file paths which are not stored in the resource list file need to be used when the resource file information list is generated, the technical scheme of the embodiment can achieve the purpose of automatically acquiring other resource file paths which need to be used, so that the conversion processing is completed, and the resource file information list is generated. Therefore, when the resource information list is generated through conversion processing, the technical scheme of the embodiment can greatly reduce the difficulty of the file submitting party in selecting the resource files, so that the submitting operation of the file submitting party becomes simple and visual.
In an embodiment of the present application, as shown in fig. 16, step S230 may further specifically include steps S1610 to S1620, which are described as follows:
step S1610, if a second resource file path exists in the plurality of resource file paths, where the second resource file path is a resource file path that cannot be used when the resource file information list is generated, obtaining a resource file path associated with the second resource file path according to the second resource file path and an association relationship of the resource file paths.
Specifically, when the resource file information list is generated, if a second resource file path exists in the acquired plurality of resource file paths, the second resource file path is a resource file path that cannot be used when the resource file information list is generated, for example, an encrypted resource file path.
In this case, the resource file path associated with the second resource file path may be obtained according to the second resource file path and the association relationship of the pre-established resource file path.
Step S1620, performing conversion processing on resource file paths except the second resource file path and a resource file path associated with the second resource file path in the multiple resource file paths, and generating a resource file information list, where the resource file information list includes the resource file paths except the second resource file path and the resource file path associated with the second resource file path.
Since the second resource file path is a resource file path that cannot be used when the resource file information list is generated, the resource file information list can be generated by converting a resource file path other than the second resource file path among the plurality of resource file paths and a resource file path associated with the second resource file path.
The specific conversion processing manner may be to convert a resource file path other than the second resource file path in the multiple resource file paths and a resource file path associated with the second resource file path to obtain a resource name and the resource file path.
For example, assuming that the obtained multiple resource file paths are a, B, C, and D, respectively, where a is a second resource file path, and a resource file path associated with the second resource file path a is E, after the associated resource file path is obtained as E, the resource file paths B, C, D, and E may be converted to generate a resource file information list. The resource file information list may include a resource name 1, a resource name 2, a resource name 3, and a resource name 4, where the resource name 1 corresponds to a related resource file path E, the resource name 2 corresponds to a resource file path B, the resource name 3 corresponds to a resource file path C, and the resource file 4 corresponds to a resource file path D.
Compared with the method for generating the resource file information list by adopting manual conversion processing in the related art, the method for generating the resource file information list by adopting the manual conversion processing in the embodiment can realize automatic conversion processing of the resource file path, thereby generating the resource file information list. The file submitting party does not need to care which resource file paths need to be used when the resource file information list is generated through conversion processing, and only needs to submit according to the selected resource file, and even if resource file paths which cannot be used exist when the resource file information list is generated, the associated resource file paths can be obtained according to the association relationship of the pre-established resource file paths, so that the associated resource file paths can be converted to generate the resource file information list. Therefore, when the resource information list is generated through conversion processing, the technical scheme of the embodiment can greatly reduce the difficulty of the file submitting party in selecting the resource files, so that the submitting operation of the file submitting party becomes simple and visual.
In an embodiment of the present application, generating the resource file information list according to the obtained multiple resource file paths may include: and converting the plurality of resource file paths to generate a resource file information list. And for resource file paths of the same type in the plurality of resource file paths, using the same name to correlate the resource file paths of the same type in a resource information list.
It should be noted that, if any two or three of the first resource file path, the second resource file path, and the same type of resource file path exist in the obtained multiple resource file paths at the same time, the resource file information list may be generated by performing respective processing according to the above embodiment regarding the first resource file path, the embodiment regarding the second resource file path, and the same type of resource file path.
Fig. 17 shows a logic diagram of a resource file processing method according to an embodiment of the present application, and details of the resource file processing method in the embodiment are described as follows with reference to fig. 17:
s1, selecting a target file directory 10 for resource file processing, wherein the target file directory 10 comprises a plurality of resource file lists, and the resource file lists are used for storing resource file paths 20;
s2, respectively obtaining stored resource file paths 20 from a plurality of resource file lists, wherein the resource file paths stored in each resource file list are automatically obtained and stored into the resource list files according to the resource files selected by corresponding file submitting parties (such as a file submitting party 1, a file submitting party 2, a file submitting party 3, a file submitting party 4 and the like);
s3, generating a resource file information list 30 according to the acquired resource file paths 20;
s4, packaging the resource files pointed by the resource file paths contained in the resource file information list to generate a packaging result 40;
s5, checking the packaging result;
s6, if the packaging result passes the verification, issuing a packaging result 40;
s7, if the packaging result is not verified, generating a file modification message 50 so as to modify the resource file pointed by the target file path according to the target resource file path contained in the file modification message 50, and repackaging the resource file pointed by the resource file path contained in the resource file information list 30 after modifying the resource file pointed by the target file path so as to generate a new packaging result;
and S8, if the packaging result is not verified, generating a file adding message 60, wherein the file adding message 60 is used for notifying corresponding file submitting parties (such as the file submitting party 1, the file submitting party 2, the file submitting party 3, the file submitting party 4 and the like) to reselect the resource files so as to update each resource list file according to the resource file path 20 of the reselected resource files.
In one possible application scenario, taking hot-update resource file processing of a game application as an example, processing of a hot-update resource file of the game application may be performed by the resource file processing system 100 in fig. 1, where the resource file processing system 100 includes a resource processing platform 102 and a terminal device 101, where the resource processing platform 100 is a processing platform running on a game development side, and the terminal device 101 is a terminal device used by a game developer, so as to facilitate maintenance and update of the game application by the game developer.
When a game application needs to be updated hot, the resource file processing system 100 may perform the process of hot updating the resource file by the game application by:
1. selecting a target file directory for performing hot update resource file processing, wherein the target file directory comprises a plurality of hot update resource list files, and the hot update resource list files are used for storing hot update resource file paths;
2. respectively obtaining stored hot update resource file paths from a plurality of hot update resource list files, wherein the hot update resource file paths stored in each hot update resource file list are automatically obtained and stored in the hot update resource list files according to the hot update resource files selected by the corresponding file submitting party;
3. generating a hot update resource file information list according to the obtained multiple hot update resource file paths, packaging the hot update resource files pointed by the hot update resource file paths contained in the hot update resource file information list, generating a packaging result, and issuing the packaging result if the packaging result passes the verification.
After the resource file processing system 100 issues the packaged result, the game application client may download the packaged result, and when the packaged result is downloaded, the game application client may display a prompt interface indicating that the packaged result is downloaded, which is schematically shown in fig. 18 and shows a prompt interface diagram when the game application client finishes downloading the packaged result. After downloading the packaging result, the game application client can analyze the packaging result to obtain the updating information, and update the game data of the game application client according to the updating information, and then the game application client can display the corresponding game activity to the user based on the updated game data.
At present, the problems of the hot update file processing mode in the hot update process of the game application are as follows: (1) Manually collecting the path list of the resource files which are heated is very labor-consuming. Not only a single person is needed to carry out statistical work, but also all the related personnel who need to issue the hot updated resource file need to deeply understand the conversion mechanism of the hot updated resource file to a certain extent, so that the issue of the hot updated resource file becomes very complicated; (2) Because the hot update resource file path list is collected manually, the error probability is very high. If the subsequent hot-update resource file packaging fails due to human errors (such as path miswriting, path non-specification, missing resource file path, etc.), it is very difficult to find the point where the problem is wrong.
Compared with the mode of manually collecting the hot update resource files, the game application hot update resource file processing method based on the embodiment automatically acquires the hot update resource file paths and stores the hot update resource file paths into the hot update resource list file, so that the probability of path misfilling caused by human factors is reduced, and the efficiency of hot update resource file processing is improved. In addition, according to the technical scheme, manual conversion is not needed after the hot updated resource files are collected, and a hot updated resource file information list can be directly generated so as to perform hot updated resource file processing according to the hot updated resource file information list. Because the manual conversion mode requires deep knowledge of the conversion mechanism by related personnel, and the manual conversion mode is not used in the embodiment, the technical scheme of the embodiment can also greatly reduce the difficulty of processing the hot update resource file.
The following describes an embodiment of an apparatus of the present application, which may be used to execute the resource file processing method in the foregoing embodiment of the present application. For details that are not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the resource file processing method described above in the present application.
Fig. 19 is a block diagram of a resource file processing apparatus according to an embodiment of the present application, and referring to fig. 19, a resource file processing apparatus 1900 according to an embodiment of the present application includes: a selection unit 1902, a first acquisition unit 1904, and a generation unit 1906.
The selecting unit 1902 is configured to select a target file directory for performing resource file processing, where the target file directory includes a plurality of resource list files, and the resource list files are used to store resource file paths; the first obtaining unit 1904 is configured to obtain stored resource file paths from the multiple resource list files, respectively, where the resource file path stored in each resource list file is automatically obtained according to the resource file selected by the corresponding file submitting party and stored in the resource list file; the generating unit 1906 is configured to generate a resource file information list according to the obtained multiple resource file paths, so as to perform resource file processing according to the resource file information list.
In some embodiments of the present application, the apparatus further comprises: the display unit is configured to display a file processing interface, the file processing interface comprises a file directory view area and a file submission view area, and the file directory view area is used for selecting the target file directory; the first receiving unit is configured to receive a submission operation that a file submitting party submits a selected resource file to the file submission view area; and the second acquisition unit is configured to respond to the submission operation, automatically acquire the resource file path corresponding to the selected resource file, and store the automatically acquired resource file path into the resource list file corresponding to the file submitter.
In some embodiments of the present application, the apparatus further comprises: a second receiving unit, configured to receive a trigger operation on a file directory included in the file directory view area, and select the target file directory according to the trigger operation, or receive a creation operation of the file directory performed in the file directory view area, and create and select the target file directory according to the creation operation.
In some embodiments of the present application, the file processing interface further includes a file list view area, where the file list view area includes resource files; the first receiving unit is configured to: and if the dragging operation that the file submitting party drags the resource file selected in the file list view area to the file submitting view area is detected, determining that the submitting operation is received.
In some embodiments of the present application, the first receiving unit is configured to: and if the pasting operation that the file submitting party pastes the selected resource file path to the file submitting view area is detected, determining that the submitting operation is received.
In some embodiments of the present application, the apparatus further comprises: the processing unit is configured to package the resource files pointed by the resource file paths contained in the resource file information list and generate a package result; checking the packaging result; and if the packed result passes the verification, issuing the packed result.
In some embodiments of the present application, the processing unit is configured to: acquiring an initial state identifier of the target file directory; and after the packaging result is issued, modifying the initial state identifier of the target file directory to obtain a modified state identifier, wherein the modified state identifier is used for identifying the target file directory to stop resource file processing.
In some embodiments of the present application, the processing unit is configured to: if the packed result is not verified, generating a file modification message; according to a target resource file path contained in the file modification message, modifying a resource file pointed by the target file path; and after the resource file pointed by the target file path is modified, repackaging the resource file pointed by the resource file path contained in the resource file information list to generate a new packaging result.
In some embodiments of the present application, the processing unit is configured to: if the packed result is not verified, generating a file adding message; and sending the file adding message to a file submitter corresponding to each resource list file, wherein the file adding message is used for notifying the file submitter corresponding to each resource list file to reselect the resource file so as to update each resource list file according to the resource file path of the reselected resource file.
In some embodiments of the present application, the generating unit 1906 is configured to: if a first resource file path exists in the resource file paths, the first resource file path is a resource file path needing to use other resource file paths when the resource file information list is generated, and the other resource file paths are not stored in the resource list file, acquiring the other resource file paths; and converting the plurality of resource file paths and the other resource file paths to generate the resource file information list, wherein the resource file information list comprises the plurality of resource file paths and the other resource file paths.
In some embodiments of the present application, the generating unit 1906 is configured to: if a second resource file path exists in the plurality of resource file paths, wherein the second resource file path is a resource file path which cannot be used when the resource file information list is generated, acquiring a resource file path related to the second resource file path according to the second resource file path and the incidence relation of the resource file path; and converting resource file paths except the second resource file path and resource file paths related to the second resource file path in the plurality of resource file paths to generate the resource file information list, wherein the resource file information list comprises the resource file paths except the second resource file path and the resource file paths related to the second resource file path.
In some embodiments of the present application, the generating unit 1906 is configured to: and converting the resource file paths to generate the resource file information list, wherein for the resource file paths of the same type in the resource file paths, the resource file paths of the same type are associated by using the same name in the resource information list.
FIG. 20 illustrates a block diagram of a computer system suitable for use to implement the electronic device of an embodiment of the present application.
It should be noted that the computer system 2000 of the electronic device shown in fig. 20 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 20, the computer system 2000 includes a Central Processing Unit (CPU) 2001, which can perform various appropriate actions and processes, such as executing the method described in the above-described embodiment, according to a program stored in a Read-Only Memory (ROM) 2002 or a program loaded from a storage section 2008 into a Random Access Memory (RAM) 2003. In the RAM 2003, various programs and data necessary for system operation are also stored. The CPU 2001, ROM 2002, and RAM 2003 are connected to each other via a bus 2004. An Input/Output (I/O) interface 2005 is also connected to bus 2004.
The following components are connected to the I/O interface 2005: an input portion 2006 including a keyboard, a mouse, and the like; an output section 2007 including a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, a speaker, and the like; a storage section 2008 including a hard disk and the like; and a communication section 2009 including a Network interface card such as a LAN (Local Area Network) card, a modem, or the like. The communication section 2009 performs communication processing via a network such as the internet. Drive 2010 is also connected to I/O interface 2005 as needed. A removable medium 2011 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 2010 as necessary, so that the computer program read out therefrom is mounted in the storage section 2008 as necessary.
In particular, according to embodiments of the present application, the processes described above with reference to the flow diagrams may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication section 2009, and/or installed from the removable medium 2011. When the computer program is executed by the Central Processing Unit (CPU) 2001, various functions defined in the system of the present application are executed.
It should be noted that the computer readable media shown in the embodiments of the present application may be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read-Only Memory (ROM), an Erasable Programmable Read-Only Memory (EPROM), a flash Memory, an optical fiber, a portable Compact Disc Read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a propagated data signal with a computer program embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present application may be implemented by software or hardware, and the described units may also be disposed in a processor. Wherein the names of the elements do not in some way constitute a limitation on the elements themselves.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method described in the above embodiments.
It should be noted that although in the above detailed description several modules or units of the device for action execution are mentioned, such a division is not mandatory. Indeed, the features and functionality of two or more modules or units described above may be embodied in one module or unit, according to embodiments of the application. Conversely, the features and functions of one module or unit described above may be further divided into embodiments by a plurality of modules or units.
Through the above description of the embodiments, those skilled in the art will readily understand that the exemplary embodiments described herein may be implemented by software, or by software in combination with necessary hardware. Therefore, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains.
It will be understood that the present application is not limited to the precise arrangements that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (15)

1. A resource file processing method, characterized in that the method comprises:
selecting a target file directory for resource file processing, wherein the target file directory comprises a plurality of resource list files, and the resource list files are used for storing resource file paths;
respectively obtaining stored resource file paths from the plurality of resource list files, wherein the resource file paths stored in the resource list files are automatically obtained and stored in the resource list files according to the resource files selected by the corresponding file submitting party;
automatically converting the acquired multiple resource file paths according to a set conversion processing mechanism, and generating a resource file information list according to a conversion processing result so as to perform resource file processing according to the resource file information list;
if a first resource file path exists in the plurality of resource file paths, the first resource file path is a resource file path that needs to use other resource file paths when the resource file information list is generated, and the other resource file paths are not stored in the resource list file, the resource file information list includes the plurality of resource file paths and the other resource file paths;
if a second resource file path exists in the plurality of resource file paths, where the second resource file path is a resource file path that cannot be used when the resource file information list is generated, the resource file information list includes a resource file path other than the second resource file path in the plurality of resource file paths and a resource file path associated with the second resource file path.
2. The method of claim 1, further comprising:
displaying a file processing interface, wherein the file processing interface comprises a file directory view area and a file submission view area, and the file directory view area is used for selecting the target file directory;
receiving a submission operation that a file submitting party submits the selected resource file to the file submitting view area;
and responding to the submitting operation, automatically acquiring a resource file path corresponding to the selected resource file, and storing the automatically acquired resource file path into a resource list file corresponding to the file submitting party.
3. The method of claim 2, further comprising:
receiving a trigger operation for a file directory contained in the file directory view area, selecting the target file directory according to the trigger operation, or,
and receiving the creation operation of the file directory performed in the file directory view area, and creating and selecting the target file directory according to the creation operation.
4. The method of claim 2, wherein the file handling interface further comprises a file list view area, the file list view area comprising the resource file;
receiving a submission operation of a file submitting party for submitting a selected resource file to the file submitting view area, wherein the submission operation comprises the following steps:
and if the dragging operation that the file submitting party drags the resource file selected in the file list view area to the file submitting view area is detected, determining that the submitting operation is received.
5. The method of claim 2, wherein receiving a commit operation by a file submitter to submit a selected resource file to the file submission view area comprises:
and if the pasting operation that the file submitting party pastes the selected resource file path to the file submitting view area is detected, determining that the submitting operation is received.
6. The method according to claim 1, wherein performing resource file processing according to the resource file information list comprises:
packaging the resource files pointed by the resource file paths contained in the resource file information list to generate a packaging result;
checking the packaging result;
and if the packed result passes the verification, issuing the packed result.
7. The method of claim 6, further comprising:
acquiring an initial state identifier of the target file directory;
and after the packaging result is issued, modifying the initial state identifier of the target file directory to obtain a modified state identifier, wherein the modified state identifier is used for identifying the target file directory to stop resource file processing.
8. The method of claim 6, further comprising:
if the packed result is not verified, generating a file modification message;
modifying the resource file pointed by the target resource file path according to the target resource file path contained in the file modification message;
and after the resource file pointed by the target resource file path is modified, repackaging the resource file pointed by the resource file path contained in the resource file information list to generate a new packaging result.
9. The method of claim 6, further comprising:
if the packed result is not verified, generating a file adding message;
and sending the file adding message to a file submitter corresponding to each resource list file, wherein the file adding message is used for notifying the file submitter corresponding to each resource list file to reselect the resource file so as to update each resource list file according to the resource file path of the reselected resource file.
10. The method according to claim 1, wherein automatically performing conversion processing on the acquired multiple resource file paths according to a set conversion processing mechanism, and generating a resource file information list according to a conversion processing result, includes:
if the first resource file path exists in the resource file paths, acquiring other resource file paths;
and converting the plurality of resource file paths and the other resource file paths to generate the resource file information list, wherein the resource file information list comprises the plurality of resource file paths and the other resource file paths.
11. The method according to claim 1, wherein automatically performing conversion processing on the acquired multiple resource file paths according to a set conversion processing mechanism, and generating a resource file information list according to a conversion processing result, comprises:
if the second resource file path exists in the plurality of resource file paths, acquiring a resource file path associated with the second resource file path according to the second resource file path and the association relationship of the resource file paths;
and converting resource file paths except the second resource file path and resource file paths related to the second resource file path in the plurality of resource file paths to generate the resource file information list, wherein the resource file information list comprises the resource file paths except the second resource file path and the resource file paths related to the second resource file path.
12. The method according to claim 1, wherein automatically performing conversion processing on the acquired multiple resource file paths according to a set conversion processing mechanism, and generating a resource file information list according to a conversion processing result, comprises:
and converting the resource file paths to generate the resource file information list, wherein for the resource file paths of the same type in the resource file paths, the resource file paths of the same type are associated by using the same name in the resource file information list.
13. An apparatus for processing resource files, the apparatus comprising:
the system comprises a selection unit, a processing unit and a processing unit, wherein the selection unit is configured to select a target file directory for resource file processing, the target file directory comprises a plurality of resource list files, and the resource list files are used for storing resource file paths;
a first obtaining unit, configured to obtain stored resource file paths from the plurality of resource list files, respectively, where the resource file path stored in each resource list file is automatically obtained according to a resource file selected by a corresponding file submitting party and stored in the resource list file;
the generating unit is configured to automatically perform conversion processing on the acquired multiple resource file paths according to a set conversion processing mechanism and generate a resource file information list according to a conversion processing result;
if a first resource file path exists in the plurality of resource file paths, the first resource file path is a resource file path that needs to use other resource file paths when the resource file information list is generated, and the other resource file paths are not stored in the resource list file, the resource file information list includes the plurality of resource file paths and the other resource file paths;
if a second resource file path exists in the plurality of resource file paths, where the second resource file path is a resource file path that cannot be used when the resource file information list is generated, the resource file information list includes a resource file path other than the second resource file path in the plurality of resource file paths and a resource file path associated with the second resource file path.
14. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, carries out the resource file processing method according to any one of claims 1 to 12.
15. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the resource file processing method of any one of claims 1 to 12.
CN202110292292.0A 2021-03-18 2021-03-18 Resource file processing method and device, computer readable medium and electronic equipment Active CN112915546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110292292.0A CN112915546B (en) 2021-03-18 2021-03-18 Resource file processing method and device, computer readable medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110292292.0A CN112915546B (en) 2021-03-18 2021-03-18 Resource file processing method and device, computer readable medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN112915546A CN112915546A (en) 2021-06-08
CN112915546B true CN112915546B (en) 2022-12-20

Family

ID=76175009

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110292292.0A Active CN112915546B (en) 2021-03-18 2021-03-18 Resource file processing method and device, computer readable medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN112915546B (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110990048A (en) * 2019-11-04 2020-04-10 珠海西山居移动游戏科技有限公司 Method and system for monitoring resource loss of Unity project

Also Published As

Publication number Publication date
CN112915546A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
US11514226B2 (en) Systems and methods for the comparison of selected text
EP3433732B1 (en) Converting visual diagrams into code
CN108292231B (en) Method and system for generating applications from data
US9396279B1 (en) Collaborative virtual markup
US9170921B2 (en) Application testing automation
US20140033082A1 (en) System and method for data-driven web page navigation control
US11443144B2 (en) Storage and automated metadata extraction using machine teaching
US10943061B2 (en) Launching workflow processes based on annotations in a document
US11443239B2 (en) Interface for machine teaching modeling
US20130283296A1 (en) Method and system for generating a service definition based on service activity events
CN103678487A (en) Method and device for generating web page snapshot
US8214245B2 (en) Method and system for synchronizing inclusive decision branches
US20170054790A1 (en) System and Method for Object Compression and State Synchronization
Pascarella et al. Self-reported activities of android developers
CN112463154A (en) Page generation method, device and system and electronic equipment
US9442719B2 (en) Regression alerts
US20120330859A1 (en) Interactive business process modeling and simulation
Brandt et al. LogChunks: A data set for build log analysis
US20120221890A1 (en) Mechanism for managing kernel application binary interface/application programming interface-based discrepancies relating to kernel packages
US10936801B2 (en) Automated electronic form generation with context cues
US20150378784A1 (en) Work flow level job input/output
Van Baarsen GitLab Cookbook
CN112915546B (en) Resource file processing method and device, computer readable medium and electronic equipment
CN115408358B (en) Network disk online file management method and device, network disk and storage medium
US20130318501A1 (en) Capturing domain validations and domain element initializations

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant