Code Monkey home page Code Monkey logo

synology-dev-env's Introduction

Synology Development Environment

This is a container-based development environment intended for compiling SPK packages for Synology devices.

The environment is managed using Docker and Docker Compose (see docker-compose.yml).
There are also several helper commands defined in the Makefile.

Getting started

Prepare the environment

Start the Docker development container environment:

make dev

Initialize a terminal session within the container:

make shell

Clone the Synology development tools:

git clone https://github.com/SynologyOpenSource/pkgscripts-ng.git /data/toolkit/pkgscripts-ng


ℹ️ You will need to know the architecture of your Synology device. Refer to the Synology documentation to find yours.
 

Deploy the development environment for your target DSM version and device architecture:

# Move to the developer tools directory
cd /data/toolkit/pkgscripts-ng

# Checkout the version tag for your target DSM version
git checkout DSM7.2

# Optionally, see the available target architectures for your target DSM version
/data/toolkit/pkgscripts-ng/EnvDeploy -v 7.2 -l

# Deploy the target architecture for your target DSM version
# (this will take some time - if it fails, try running again)
/data/toolkit/pkgscripts-ng/EnvDeploy -v 7.2 -p apollolake

Compiling packages

I have included an example for building vim.
Refer to the Synology documentation for more on building packages.

Resources

synology-dev-env's People

Contributors

lstellway avatar

Watchers

 avatar

synology-dev-env's Issues

GitHub action

Would be great to get the Synology toolkit setup as a GitHub action.

Based on container running on Ubuntu.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.