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.
XPeynology Specs:
I started learning the basics from Synology's developer guide: Synology Developer Guide. I have carefully read through and followed the steps for:
I downloaded the ExamplePackages from GitHub and followed all the instructions for the Build Stage and Pack Stage. I successfully created the
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
To delve deeper, I ran the
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
Resources and Files
To aid in troubleshooting, I have uploaded the following resources to Google Drive:
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!
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.
XPeynology 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
- Full Path Directory Structure (Link on Google Drive)
- List of Directories Only (Link on Google Drive)
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
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):
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):
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)
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!