A file library updating method, device, electronic device and storage medium
By receiving file library update instructions, obtaining and integrating component description data, and generating an updated file library, the problem of low file library update efficiency is solved, and fast uploading and efficient updates are achieved.
Patent Information
- Application Number
- CN202111081081.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-15
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-09-15
AI Technical Summary
In the field of Internet technology, the file library update efficiency is low because the entire file library needs to be uploaded, resulting in a large amount of data and slow upload speed.
By receiving the file library update instruction, the component description data corresponding to the file library identifier is obtained, fusion processing is performed, and the updated component description data is generated. Based on this, the updated file library is generated. You only need to upload the component description data to be updated, and There is no need to upload the entire library.
Significantly improves the update efficiency of the file library, and improves the upload speed by reducing the amount of uploaded data.
Smart Images

Figure CN113886406B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of Internet technology, and in particular to a method, device, electronic device and storage medium for updating a file library. Background Art
[0002] In the field of Internet technology, in order to collaborate on a project, technicians can upload the shared file library of the project to a third-party server for storage. The file library contains images, documents, components and other information required for the project. Subsequently, each technician can first download the file library from the third-party server, develop new components based on the downloaded file library, and then upload the new components to the third-party server.
[0003] In the related art, when uploading a new component to a third-party server, the entire file library needs to be uploaded to the third-party server. Since the data volume of the entire file library is relatively large, the upload speed will be relatively slow, resulting in low update efficiency of the file library. Summary of the invention
[0004] The present disclosure provides a file library update method, device, electronic device and storage medium to at least solve the problem of low file library update efficiency in related technologies. The technical solution of the present disclosure is as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, a method for updating a file library is provided, comprising:
[0006] Receive a file library update instruction, wherein the file library update instruction includes a file library identifier and first component description data;
[0007] Acquire second component description data in the file library corresponding to the file library identifier;
[0008] Performing fusion processing on the first component description data and the second component description data to obtain updated component description data;
[0009] An updated file library is generated based on the updated component description data.
[0010] In some possible implementations, obtaining the second component description data in the file library corresponding to the file library identifier includes:
[0011] Acquire a file library corresponding to the file library identifier from a data warehouse;
[0012] Decompressing the file library;
[0013] The target file under the specified path obtained by decompression is parsed to obtain the second component description data.
[0014] In some possible implementations, fusing the first component description data and the second component description data to obtain updated component description data includes:
[0015] When the file library update instruction is a component adding instruction, adding the first component description data to the second component description data to obtain updated component description data;
[0016] When the file library update instruction is a component replacement instruction, the first component description data is used to replace the corresponding component description data in the second component description data to obtain updated component description data.
[0017] In some possible implementations, generating an updated file library based on the updated component description data includes:
[0018] The updated component description data and the decompressed data except the target file are compressed to obtain an updated file library.
[0019] In some possible implementations, after generating the updated file library, the method further includes:
[0020] The updated file library is sent to the data warehouse.
[0021] In some possible implementations, after generating the updated file library, the method further includes:
[0022] Obtaining the download address of the updated file library;
[0023] The download address is sent to the online plug-in end, so that the plug-in end loads the latest file library.
[0024] In some possible implementations, obtaining the download address of the updated file library includes:
[0025] Generate a download address for the updated file library; or,
[0026] The updated file library is sent to a content distribution network, and a download address of the updated file library sent by the content distribution network is received.
[0027] According to a second aspect of an embodiment of the present disclosure, there is provided a device for updating a file library, including:
[0028] A receiving unit, configured to execute and receive a file library update instruction, wherein the file library update instruction includes a file library identifier and first component description data;
[0029] A first acquisition unit is configured to execute acquisition of second component description data in the file library corresponding to the file library identifier;
[0030] a fusion unit, configured to perform fusion processing on the first component description data and the second component description data to obtain updated component description data;
[0031] The generating unit is configured to generate an updated file library based on the updated component description data.
[0032] In some possible implementations, the first acquiring unit is specifically configured to execute:
[0033] Acquire a file library corresponding to the file library identifier from a data warehouse;
[0034] Decompressing the file library;
[0035] The target file under the specified path obtained by decompression is parsed to obtain the second component description data.
[0036] In some possible implementations, the fusion unit is specifically configured to perform:
[0037] When the file library update instruction is a component adding instruction, adding the first component description data to the second component description data to obtain updated component description data;
[0038] When the file library update instruction is a component replacement instruction, the first component description data is used to replace the corresponding component description data in the second component description data to obtain updated component description data.
[0039] In some possible implementations, the generating unit is specifically configured to execute:
[0040] The updated component description data and the decompressed data except the target file are compressed to obtain an updated file library.
[0041] In some possible implementations, the following further includes:
[0042] The sending unit is configured to send the updated file library to the data warehouse after generating the updated file library.
[0043] In some possible implementations, the following further includes:
[0044] A second obtaining unit is configured to obtain a download address of the updated file library after generating the updated file library;
[0045] The sending unit is configured to send the download address to the online plug-in terminal, so that the plug-in terminal loads the latest file library.
[0046] In some possible implementations, the second acquiring unit is specifically configured to execute:
[0047] Generate a download address for the updated file library; or,
[0048] The updated file library is sent to a content distribution network, and a download address of the updated file library sent by the content distribution network is received.
[0049] According to a third aspect of an embodiment of the present disclosure, there is provided an electronic device, including:
[0050] processor;
[0051] a memory for storing instructions executable by the processor;
[0052] The processor is configured to execute the instructions to implement any of the above-mentioned file library update methods.
[0053] According to a fourth aspect of an embodiment of the present disclosure, a storage medium is provided. When instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute any of the above-mentioned file library update methods.
[0054] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, wherein the computer program product includes a program code. When the program code is run on an electronic device, the program code is used to enable the electronic device to execute any of the above-mentioned file library update methods.
[0055] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects:
[0056] Receive a file library update instruction, wherein the file library update instruction includes a file library identifier and first component description data, obtain second component description data in the file library corresponding to the file library identifier, fuse the first component description data and the second component description data to obtain updated component description data, and generate an updated file library based on the updated component description data. In this way, when updating the file library, only the component description data to be updated in the file library needs to be uploaded, and no data in the entire file library needs to be uploaded. The amount of data uploaded is greatly reduced, so the upload speed can be increased, thereby improving the update efficiency of the file library.
[0057] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0059] Figure 1 The present invention is a flowchart of a method for updating a file library according to an exemplary embodiment.
[0060] Figure 2 The flowchart of another method for updating a file library is shown according to an exemplary embodiment.
[0061] Figure 3 The figure is a flow chart of a method for updating a sketch library according to an exemplary embodiment.
[0062] Figure 4 The invention is a block diagram of a device for updating a file library according to an exemplary embodiment.
[0063] Figure 5 The figure is a schematic diagram of the hardware structure of an electronic device for implementing a method for updating a file library according to an exemplary embodiment. DETAILED DESCRIPTION
[0064] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0065] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0066] In order to facilitate the understanding of the present disclosure, the technical terms involved in the present disclosure are as follows:
[0067] The file library can be regarded as a code repository that can provide technical personnel with some variables, functions or classes that can be used directly.
[0068] Components are simple encapsulation of data and methods. Taking Sketch as an example, symbols are components in Sketch.
[0069] During specific implementation, the technician can load the file library of the project through the plug-in end of the project, and develop the components required for the project based on the loaded file library. After developing one, two or more components, the component description data (i.e., the first component description data) of these components can be carried in the file library update instruction and sent to the server. The server can obtain the original component description data (i.e., the second component description data) in the file library, and fuse the first component description data and the second component description data to obtain the updated component description data, and then generate the updated file library based on the updated component description data. In this way, when updating the file library, it is not necessary to upload the data in the entire file library, and the amount of data uploaded is greatly reduced, so the upload speed can be improved, thereby improving the update efficiency of the file library. In addition, it is also conducive to the fragmented management of components in the file library and the dynamic generation of the file library.
[0070] Next, a method for updating a file library provided by an embodiment of the present disclosure is introduced.
[0071] Figure 1 The present invention is a flowchart of a method for updating a file library according to an exemplary embodiment, comprising the following steps:
[0072] In step S101, a file library update instruction is received, wherein the file library update instruction includes a file library identifier and first component description data.
[0073] During specific implementation, the file library update instructions include component addition instructions and component replacement instructions.
[0074] Considering that multiple projects can be deployed on a server, and the file libraries corresponding to each project are different, the file library update instruction can carry a file library identifier to update the component description data (ie, the first component description data) of the newly developed component to the correct file library.
[0075] In addition, the first component description data can be used to describe one, two, three, or more components, that is, one, two, three, or more components can be updated to the original file library at one time.
[0076] In step S102, second component description data in the file library corresponding to the file library identifier is obtained.
[0077] In specific implementation, if the file library is stored on the server, the file library corresponding to the file library identifier can be obtained locally; if the file library is stored on the data warehouse, the file library corresponding to the file library identifier can be obtained from the data warehouse, and then the file library can be decompressed, and the target file under the specified path obtained by decompression can be parsed to obtain the second component description data.
[0078] In step S103, the first component description data and the second component description data are fused to obtain updated component description data.
[0079] In specific implementation, when the file library update instruction is a component addition instruction, the first component description data is added to the second component description data to obtain the updated component description data; when the file library update instruction is a component replacement instruction, the first component description data is used to replace the corresponding component description data in the second component description data to obtain the updated component description data.
[0080] In step S104, an updated file library is generated based on the updated component description data.
[0081] During specific implementation, the updated component description data and the data obtained after decompression except the target file are compressed to obtain an updated file library.
[0082] In addition, after generating an updated file library, the download address of the updated file library can be obtained, for example, the download address of the updated file library can be directly generated, or the updated file library can be sent to a content distribution network, the download address of the updated file library generated by the content distribution network can be received, and then the download address can be sent to an online plug-in end, so that the online plug-in end can load the latest file library according to the download address.
[0083] Figure 2 FIG. 1 is a flowchart of another method for updating a file library according to an exemplary embodiment, comprising the following steps:
[0084] In step S201, the server receives a file library update instruction sent by the plug-in terminal 1, wherein the file library update instruction includes a file library identifier and first component description data.
[0085] In step S202, the server obtains the file library corresponding to the file library identifier from the data warehouse.
[0086] In step S203, the server decompresses the file library.
[0087] In step S204, the server parses the decompressed target file in the specified path to obtain second component description data.
[0088] In step S205, the server merges the first component description data and the second component description data to obtain updated component description data.
[0089] In step S206, the server compresses the updated component description data and the decompressed data except the target file to obtain an updated file library.
[0090] In step S207, the server sends the updated file library to the data warehouse.
[0091] In this way, the latest version of the file library is stored in the data warehouse, which can be prepared for the next file library update. In addition, the file library is stored in the data warehouse, and the version of the file library is managed by taking advantage of the version management of the data warehouse.
[0092] In step S208, the data warehouse stores the updated file library.
[0093] In step S209, the data warehouse sends a file library synchronization success message to the server.
[0094] In step S210, the server sends the updated file library to the content distribution network.
[0095] In step S211, the content distribution network generates a download address of the updated file library.
[0096] In step S212, the content distribution network sends the download address to the server.
[0097] In step S213, the server sends the download address to the online plug-in terminals 1-n.
[0098] In step S214, the online plug-in terminals 1-n load the latest file library.
[0099] Sketch is a software for web page, icon and interface design. The most basic drawing unit in Sketch is called layer. Symbol is an element in layer, which is mainly used to represent reused components. If different visual drafts use the same symbol component, then when the symbol component source is updated, the pages using these symbol components will also be updated. Therefore, they usually share the same sketch library (symbol component collection) to ensure the consistency of the symbol source.
[0100] The technical solution of the embodiment of the present disclosure is described below by taking updating the sketch library as an example.
[0101] Figure 3 is a flow chart of a method for updating a sketch library according to an exemplary embodiment, comprising the following steps:
[0102] In step S301, the sketch plug-in terminal 1 uploads the component description data of the symbol.
[0103] In specific implementation, after developing a symbol, the technician can use the application program interface provided by the sketch software provider to obtain the component description data of the symbol, and then send the component description data of the symbol to the server, where the component description data includes the symbol's json format data and a preview image in png format.
[0104] In step S302, the server stores the component description data of the symbol.
[0105] In order to enable technicians to intuitively see and use symbols uploaded by other technicians on the Sketch plug-in, the component description data of a single symbol can be stored. In addition, in order to identify different symbols, each symbol can have a unique identifier (uniqueId), and the value of uniqueId can be generated on the plug-in side to ensure that the uniqueIds of different symbols are different.
[0106] In step S303, the server obtains the latest library of Sketch from the Git repository.
[0107] Git is a distributed version control software. Using Git, you can easily manage the version of Sketch library, especially in the case of multi-person collaboration, to ensure that the project can be updated stably without confusion.
[0108] In step S304, the server obtains the json file at a specified location in the pages directory in the library.
[0109] In actual applications, the Sketch library is a compressed package that can be decompressed and recompressed. The library contains a lot of component description data. The decompressed structure is as follows:
[0110] -images
[0111] -0c2421c7228cf5e9d8133b6f598461a7cf439fc5.png
[0112] -00f051d3a27fec14ba725121eb2bffb3ac1c3e02.png
[0113] -etc…
[0114] -pages
[0115] -9B2D6A75-D2C0-40F3-88AB-AE4BD625E520.json
[0116] -866BD861-A247-4826-A32A-C8DE4F109578.json
[0117] -previews
[0118] -preview.png
[0119] -document.json
[0120] -meta.json
[0121] -user.json
[0122] The component description data of the symbol is stored in a json file under the pages directory. The location of the json file can be specified in advance. For example, the first json file or the second json file under the pages directory is specified as the file to be searched.
[0123] In step S305, the server parses the obtained JSON file to obtain component description data of all symbols in the library.
[0124] In step S306, the server merges the component description data of the uploaded symbol with the component description data of all symbols in the library to obtain updated component description data.
[0125] In Sketch, each symbol is an element in the layers array. The layers array is shown below. Insert the component description data of the uploaded symbol into this array, or replace the component description data at the corresponding position in this array with the component description data of the uploaded symbol to complete the update of the layers array (that is, obtain the updated component description data).
[0126]
[0127] In step S307, the server generates an updated library based on the updated component description data and the data in the library except the JSON file.
[0128] During specific implementation, the command zip-rX test_new.sketch* may be used to compress the updated component description data and the data in the library except for the json file, thereby obtaining the updated library.
[0129] After the above decompression and compression, test_new.sketch can be opened and used normally.
[0130] In step S308, the server sends the updated library to the Git repository.
[0131] In this way, the latest version of the library is stored in the data warehouse, which can prepare for the next library update and manage the library version by taking advantage of the version management advantages of the data warehouse.
[0132] In step S309, the Git repository stores the updated library.
[0133] In step S310, the Git repository sends a library synchronization success message to the server.
[0134] In step S311, the server sends the updated library to the content distribution network.
[0135] In order to generate a download address and facilitate the Sketch plug-in to update the local library according to the download address, the updated library can be sent to the content distribution network, and the content distribution network will generate the download address of the updated library.
[0136] In step S312, the content distribution network generates a download address of the updated library.
[0137] In step S313, the content distribution network sends the download address to the server.
[0138] In step S314, the server sends the download address to the online plug-in terminals 1-n.
[0139] In specific implementation, the server can provide the api / kid / symbol / getAllLibrary interface, through which the plug-in can obtain the latest library version and corresponding download address and other information, and then decide whether to update the local library.
[0140] In step S315, the online plug-in terminals 1 to n load the latest library.
[0141] In specific implementation, after the online plug-in loads the latest library, the underlying mechanism of Sketch will ensure that all symbol references are updated synchronously.
[0142] In the disclosed embodiment, the sketch plug-in is used to manage symbols in a fragmented manner, so that symbols can be viewed and used on demand. At the same time, the sketch plug-in is used to support independent uploading of symbols, and a library is dynamically generated on the server side and sent to the sketch plug-in end, thereby improving the component management efficiency and upload efficiency of symbols.
[0143] Figure 4 4 is a block diagram of a file library update device according to an exemplary embodiment, the device includes a receiving unit 401, a first acquisition unit 402, a fusion unit 403 and a generation unit 404, wherein:
[0144] A receiving unit 401 is configured to execute and receive a file library update instruction, wherein the file library update instruction includes a file library identifier and first component description data;
[0145] A first acquisition unit 402 is configured to execute acquisition of second component description data in the file library corresponding to the file library identifier;
[0146] A fusion unit 403 is configured to perform fusion processing on the first component description data and the second component description data to obtain updated component description data;
[0147] The generating unit 404 is configured to generate an updated file library based on the updated component description data.
[0148] In some possible implementations, the first acquiring unit 402 is specifically configured to execute:
[0149] Acquire a file library corresponding to the file library identifier from a data warehouse;
[0150] Decompressing the file library;
[0151] The target file under the specified path obtained by decompression is parsed to obtain the second component description data.
[0152] In some possible implementations, the fusion unit 403 is specifically configured to perform:
[0153] When the file library update instruction is a component adding instruction, adding the first component description data to the second component description data to obtain updated component description data;
[0154] When the file library update instruction is a component replacement instruction, the first component description data is used to replace the corresponding component description data in the second component description data to obtain updated component description data.
[0155] In some possible implementations, the generating unit 404 is specifically configured to execute:
[0156] The updated component description data and the decompressed data except the target file are compressed to obtain an updated file library.
[0157] In some possible implementations, the following further includes:
[0158] The sending unit 405 is configured to send the updated file library to the data warehouse after generating the updated file library.
[0159] In some possible implementations, the following further includes:
[0160] The second obtaining unit 406 is further configured to obtain a download address of the updated file library after generating the updated file library;
[0161] The sending unit 405 is configured to send the download address to the online plug-in terminal, so that the plug-in terminal loads the latest file library.
[0162] In some possible implementations, the second acquiring unit 406 is specifically configured to execute:
[0163] Generate a download address for the updated file library; or,
[0164] The updated file library is sent to a content distribution network, and a download address of the updated file library sent by the content distribution network is received.
[0165] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present disclosure, the electronic device includes a transceiver 501 and a physical device such as a processor 502, wherein the processor 502 can be a central processing unit (CPU), a microprocessor, a dedicated integrated circuit, a programmable logic circuit, a large-scale integrated circuit, or a digital processing unit, etc. The transceiver 501 is used for electronic devices to send and receive data with other devices.
[0166] The electronic device may also include a memory 503 for storing software instructions executed by the processor 502, and of course, some other data required by the electronic device may also be stored, such as identification information of the electronic device, encryption information of the electronic device, user data, etc. The memory 503 may be a volatile memory, such as a random access memory (RAM); the memory 503 may also be a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk (HDD) or a solid-state drive (SSD), or the memory 503 may be any other medium that can be used to carry or store the desired program code in the form of an instruction or data structure and can be accessed by a computer, but is not limited thereto. The memory 503 may be a combination of the above memories.
[0167] The specific connection medium between the processor 502, the memory 503 and the transceiver 501 is not limited in the embodiments of the present disclosure. Figure 5 In the example, the memory 503, the processor 502 and the transceiver 501 are connected via the bus 504. Figure 5 The connections between the other components are shown in bold lines, which are only for illustration and are not intended to be limiting. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0168] The processor 502 can be dedicated hardware or a processor that runs software. When the processor 502 can run software, the processor 502 reads the software instructions stored in the memory 503 and, driven by the software instructions, executes any file library update method involved in the aforementioned embodiments.
[0169] The embodiment of the present disclosure also provides a storage medium, when the instructions in the storage medium are executed by the processor of the electronic device, the processor of the electronic device can execute any file library update method in the embodiment of the present disclosure. In addition, the storage medium can be a non-temporary computer-readable storage medium such as ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
[0170] The embodiments of the present disclosure further provide a computer program product, which includes a program code. When the program code is run on an electronic device, the program code is used to enable the electronic device to execute any file library update method in the embodiments of the present disclosure.
[0171] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. The present disclosure is intended to cover any variations, uses or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The description and examples are to be considered exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0172] It should be understood that the present disclosure is not limited to the exact structures 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 present disclosure is limited only by the appended claims.
Claims
1. A method for updating a file library, characterized in that: include: Receive the component description data of the symbol uploaded by the Sketch plugin; Get the latest file library of Sketch, get the JSON file at the specified location under the pages directory in the library, parse the obtained JSON file, and get the component description data of all symbols in the library; The component description data of the uploaded symbol is merged with the component description data of all symbols in the library to obtain updated component description data; Generate an updated library based on the updated component description data and the data in the library except the obtained JSON file; Get the download address of the updated library; Send the download address to other online Sketch plugin terminals so that other Sketch plugin terminals can load the latest library.
2. The method according to claim 1, characterized in that Each symbol is an element in the layers array. The component description data of the uploaded symbol is merged with the component description data of all symbols in the library to obtain the updated component description data, including: When adding a new component, insert the component description data of the uploaded symbol into the layers array to obtain the updated component description data; When replacing a component, the component description data of the uploaded symbol is used to replace the component description data at the corresponding position in the layers array to obtain the updated component description data.
3. The method according to claim 1, characterized in that Generate an updated library based on the updated component description data and the data in the library except the acquired JSON file, including: The updated component description data and the data in the library except the obtained JSON file are compressed to obtain an updated library.
4. The method according to claim 1, characterized in that: Get the latest Sketch library, including: Get the latest Sketch library from the Git repository; After generating the updated library, also include: Send the updated library to the Git repository.
5. The method according to claim 1, characterized in that: Get the download address of the updated library, including: Generate the download address of the updated library; or, The updated library is sent to a content distribution network, and a download address of the updated library sent by the content distribution network is received.
6. A file library updating device, characterized in that: include: A receiving unit, configured to receive component description data of a symbol uploaded by the sketch plug-in end; The first acquisition unit is configured to execute acquisition of the latest file library of Sketch, acquire a JSON file at a specified location under the pages directory of the library, parse the acquired JSON file, and obtain component description data of all symbols in the library; A fusion unit is configured to perform fusion processing on the component description data of the uploaded symbol and the component description data of all symbols in the library to obtain updated component description data; A generating unit is configured to generate an updated library based on the updated component description data and data in the library except the acquired JSON file; A second obtaining unit is configured to obtain a download address of the updated library; The sending unit is configured to execute sending the download address to other online Sketch plug-in terminals, so that the other Sketch plug-in terminals load the latest library.
7. The device according to claim 6, characterized in that Each symbol is an element in the layers array, and the fusion unit is specifically configured to perform: When adding a new component, insert the component description data of the uploaded symbol into the layers array to obtain the updated component description data; When replacing a component, the component description data of the uploaded symbol is used to replace the component description data at the corresponding position in the layers array to obtain the updated component description data.
8. The device according to claim 6, characterized in that The generating unit is specifically configured to execute: The updated component description data and the data in the library except the obtained JSON file are compressed to obtain an updated library.
9. The device according to claim 6, characterized in that Also includes the sending unit: The first acquisition unit is specifically configured to execute acquisition of the latest Sketch file library from the Git repository; The sending unit is configured to send the updated library to the Git repository after executing the generation of the updated library.
10. The device according to claim 6, characterized in that The second acquisition unit is specifically configured to execute: Generate the download address of the updated library; or, The updated library is sent to a content distribution network, and a download address of the updated library sent by the content distribution network is received.
11. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is configured to execute the instructions to implement the file library update method according to any one of claims 1 to 5.
12. A storage medium, characterized in that: When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the file library updating method as described in any one of claims 1 to 5.
13. A computer program product, characterized in that The computer program product includes a program code. When the program code is run on an electronic device, the program code is used to enable the electronic device to execute the file library updating method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Software project continuous integration method and device, terminal equipment and storage medium
CN112068874A
