memo_sobhy Posted August 12, 2024 #1 Posted August 12, 2024 Hello Everyone, I'm currently working on a Synology package build environment on my laptop running Ubuntu 24.04 LTS. I've followed the instructions from Synology's developer guide, but I'm encountering a persistent issue that I hope someone here can help me resolve. XPenology Specs: DSM Version: DSM 7.2.1-69057 Update 5 Loader Version and Model: ARC 24.8.03 / DS923+ Installation Type: Intel(R) Xeon(R) CPU E5-1603 0 @ 2.80GHz | HP Workstation Z620 I have set up the build environment on Ubuntu 24.04 LTS and you can find the directory structure of my build environment in these two text files: Full Path Directory Structure (Link on Google Drive) List of Directories Only (Link on Google Drive) Learning Path I started learning the basics from Synology's developer guide: Synology Developer Guide. I have carefully read through and followed the steps for: System Requirements Prepare Environment Your First Package Build Stage Pack Stage Problem Description I downloaded the ExamplePackages from GitHub and followed all the instructions for the Build Stage and Pack Stage. I successfully created the `ExamplePackage-x86_64-1.0.0-0001.spk` file. However, when I reached the "Your First Package" step, which involves manually installing the package on a Synology NAS, I encountered a significant issue. Each time I attempted to install the package, I received the following error: "Invalid file format. Please contact the package developer." I've meticulously checked everything, re-packaged the files multiple times, and explored various methods to resolve the issue, but the error persists. Despite my efforts, I can't seem to identify the root cause of this problem. I've scoured the internet for solutions but haven't found anything helpful. I have thoroughly verified my build environment and ensured that all files necessary for building and packaging the program are correctly set up. This situation is frustrating, especially because I need to successfully pass this example package step to start developing my own app. Despite carefully following all the instructions and understanding the compilation process, I can't move forward due to this error. Diagnostics and Comparisons To further investigate the issue, I decided to download a package directly from the Synology Download Center, specifically the `Text Editor` package. Upon downloading, I noticed that the icon of the downloaded package appeared different, almost as if it were encrypted. To delve deeper, I ran the `file <Name_Of_Package>` command in my terminal to determine the type of each package. Here are the results: TextEditor Package (from Synology Download Center): Quote TextEditor-x86_64-1.2.5-0254.spk: Synology archive, package "TextEditor" "x86_64" "1.2.5-0254", created on "20231228-19:51:50" ExamplePackage (the one I created): Quote ExamplePackage-x86_64-1.0.0-0001.spk: POSIX tar archive (GNU) I also uploaded some photos to Google Drive that show the differences in the package formats and the icons. You can view them here: Screenshots. It became clear that the two packages were in different formats. I then searched extensively on how to create a `.spk` file with the "Synology archive, package" format but unfortunately, I couldn't find any relevant information. Resources and Files To aid in troubleshooting, I have uploaded the following resources to Google Drive: ExamplePackage-x86_64-1.0.0-0001.spk TextEditor-x86_64-1.2.5-0254.spk ExamplePackage-x86_64-1.0.0-0001 (extracted folder contents) You can view these files and further details here: Packages. Request for Help I'm reaching out to the community for assistance. If anyone has experience with Synology package development and can provide insights on why my package is not being recognized correctly, I would greatly appreciate your help. If you're willing to take a closer look, I am open to sharing more details, and I can also coordinate a session via Anydesk. Any advice or suggestions to help me get past this hurdle would be immensely valuable. Thank you in advance for your support! Quote
Aigor Posted August 13, 2024 #2 Posted August 13, 2024 Hi, try to start from https://github.com/SynoCommunity/spksrc You can find all the istrunctions for to setup build env and a minimal server for distribution via package manager inside DSM Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.