{"id":17235888,"url":"https://github.com/publicarray/spkcli","last_synced_at":"2026-01-20T08:33:25.755Z","repository":{"id":46207068,"uuid":"409734509","full_name":"publicarray/spkcli","owner":"publicarray","description":"Opinionated Scrip to make managing https://github.com/SynoCommunity/spksrc/ easier ","archived":false,"fork":false,"pushed_at":"2024-04-17T13:33:03.000Z","size":82,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-11T13:42:04.159Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/publicarray.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-09-23T20:26:01.000Z","updated_at":"2023-03-04T17:54:39.000Z","dependencies_parsed_at":"2024-04-17T14:44:39.757Z","dependency_job_id":"feb68b48-ef7b-40e2-a120-ae48b4bb2a3e","html_url":"https://github.com/publicarray/spkcli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/publicarray/spkcli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/publicarray%2Fspkcli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/publicarray%2Fspkcli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/publicarray%2Fspkcli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/publicarray%2Fspkcli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/publicarray","download_url":"https://codeload.github.com/publicarray/spkcli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/publicarray%2Fspkcli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28599036,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T02:08:49.799Z","status":"ssl_error","status_checked_at":"2026-01-20T02:08:44.148Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T05:34:53.768Z","updated_at":"2026-01-20T08:33:25.741Z","avatar_url":"https://github.com/publicarray.png","language":"Shell","readme":"\n# spkcli.sh\n\n## Features\n\n* Common aliases\n* Publish in container or via GitHub (requires gh cli)\n* Test script (alpha)\n  * Caveat: Packages with wizards will fail to install if they han't been designed with empty/defaults input\n* Update script (beta)\n\n\n## Usage\n\n1. Copy the files to the root of the spksrc reposetory:\n\n```sh\nwget https://raw.githubusercontent.com/publicarray/spkcli/main/spkcli.sh; chmod +x spkcli.sh; wget https://raw.githubusercontent.com/publicarray/spkcli/main/test; chmod +x test; printf \"SSH_HOST=\\\"dsm7-dev\\\"\\nSSH_PASS=\\\"\\\"\" \u003e .env\n```\nNote: you may want to update your `~/.ssh/config` to include your NAS as an alias: e.g\n```ssh\nHost dsm7-dev\n   HostName 10.0.0.3\n   User admin\n```\n\n3. Update the `.env` file\n\n```\n./spkcli [COMMAND]\n    build [SPK] {ARCH}      build packages for development (x64-7.0)\n    clean [SPK]             clean package\n    clean-all               clean all builds and cached files in /distrib\n    digest [SPK]            update digests\n    lint                    run make lint\n    publish [SPK] {ARCH}    build and publish for all DSM architectures\n    publish-ci [SPK] true   build and publish for all supported DSM versions/architectures using GitHub Actions\n    pull                    git pull \u0026 docker image pull\n    run                     run container for development\n    test [SPK FILE] [SPK]   run test script on NAS via ssh\n    update [SPK]            check for git releases for an update\n```\n\n## Examples\n\n### Failed test Report\n\n```log\n./spkcli test packages/bazarr_x64-7.0_1.0.0-1.spk bazarr\n System Information\n\tDate: 2021-11-07 01:04\n\tWhoami: root\n\tHostname: DSM7\n\tArchitecture: kvmx64, x86_64\n\tModel: virtualdsm\n\tFirmware Version: 7.0.1-42218\n\tBuild date: 2021/10/18 21:16:50\n\tKernel: Linux DSM7 4.4.180+ #42218 SMP Mon Oct 18 19:17:55 CST 2021 x86_64 GNU/Linux synology_kvmx64_virtualdsm\n\tPackage Center Channel: beta\n\tLanguage: def\n\tVAAI support: yes\n\tInstalled Memory: 2002\nFilesystem      Size  Used Avail Use% Mounted on\n/dev/sdb1        18G  3.9G   14G  23% /volume1\n Running Tests\n{\"error\":{\"code\":0},\"results\":[{\"action\":\"upgrade\",\"beta\":false,\"betaIncoming\":false,\"error\":{\"code\":0},\"finished\":true,\"installReboot\":false,\"installing\":true,\"language\":\"enu\",\"last_stage\":\"postupgrade\",\"package\":\"bazarr\",\"packageName\":\"Bazarr\",\"pid\":3219,\"scripts\":[{\"code\":0,\"message\":\"\",\"type\":\"preupgrade\"},{\"code\":0,\"message\":\"\",\"type\":\"preuninst\"},{\"code\":0,\"message\":\"\",\"type\":\"postuninst\"},{\"code\":0,\"message\":\"\",\"type\":\"preinst\"},{\"code\":0,\"message\":\"\",\"type\":\"postinst\"},{\"code\":0,\"message\":\"\",\"type\":\"postupgrade\"}],\"spk\":\"bazarr_x64-7.0_1.0.0-1.spk\",\"stage\":\"installed_and_stopped\",\"status\":\"stop\",\"success\":true,\"username\":\"\"}],\"success\":true}\n✅ [pass] Installed bazarr_x64-7.0_1.0.0-1.spk\n✅ [pass] Install log file exists\n2021/11/07 01:05:02\tERROR:root:failed to read config file /root/.config/virtualenv/virtualenv.ini because PermissionError(13, 'Permission denied')\n❌ [fail] Install logfile is free of errors\n2021/11/07 01:05:03\tWARNING: The directory '/root/.cache/pip' or its parent directory is not owned or is not writable by the current user. The cache has been disabled. Check the permissions and owner of that directory. If executing pip with sudo, you should use sudo's -H flag.\n2021/11/07 01:05:39\t    Can't uninstall 'greenlet'. No files were found to uninstall.\n [ignored] Install logfile is free of warnings\n✅ [pass] Embedded package icon\nℹ [info] Package has a service\n✅ [pass] Package has both the firewall rule and admin port\ndst.ports=\"6767/tcp\"\n✅ [pass] Admin port is included in the firewall rule\n✅ [pass] Firewall rule is installed\n✅ [pass] Valid json for app/config\n{\"action\":\"prepare\",\"error\":{\"code\":0},\"stage\":\"prepare\",\"success\":true}\n✅ [pass] Start bazarr\nbazarr package is started\n✅ [pass] Status bazarr\n{\"action\":\"prepare\",\"error\":{\"code\":0},\"stage\":\"prepare\",\"success\":true}\n✅ [pass] Stop bazarr\nbazarr package is stopped\nStatus: [3]\n✅ [pass] Status bazarr\n Package Information\n\tFilename: bazarr_x64-7.0_1.0.0-1.spk\n\tName: bazarr\n\tVersion: 1.0.0-1\n\tDisplay Name: Bazarr\n\tAdmin Port: 6767\n\tMinimum DSM version: 7.0-41890\n\tDependency Packages: python38:ffmpeg\n\tInstall Log: \"/var/log/packages/bazarr.log\"\n\tRun Log: The log file is /volume1/@appdata/bazarr/bazarr_temp.log\nremoved 'bazarr_x64-7.0_1.0.0-1.spk'\n\n[1] Test failed  😢\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpublicarray%2Fspkcli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpublicarray%2Fspkcli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpublicarray%2Fspkcli/lists"}