41 Commits

Author SHA1 Message Date
truewhile 95d8126d65 优化windows包,优化windos可执行文件功能 2026-09-14 15:48:59 +08:00
truewhile 3aa8662c45 优化,日志脱敏 2026-09-14 15:12:42 +08:00
truewhile ebe425036b CI调整:每次push main也发布Release与多平台二进制(保留原有发布习惯) 2026-09-05 18:33:27 +08:00
truewhile edbaa1c84b CI改造:VERSION文件迁移至独立version分支,CI读取并自增写回该分支,main不再含版本文件 2026-09-05 18:27:39 +08:00
truewhile 0179332013 CI改造:版本号改为tag驱动,移除每次push回写VERSION的bump提交,消除本地推送冲突 2026-09-05 18:16:50 +08:00
truewhile ee2272f743 优化 2026-09-02 19:08:06 +08:00
truewhile b0fe40142a Rebrand MMTL to MeBox (name, logo, Docker image) (#17)
* Rebrand MMTL to MeBox across codebase and assets

Rename the project display name, Go module path, environment variable
prefix (MEBOX_*), Docker image references, and UI branding from MMTL/mmtl
to MeBox/mebox. Replace logo assets with the new MeBox icon and keep
legacy SQLite migration support for existing mmtl.db deployments.

Co-authored-by: truewhile <truewhile@users.noreply.github.com>

* Fix logo icons: use cube-only crop without truncated text

Previous icon generation cropped too much of the source image, including
partial MeBox wordmark text that was cut off in square icon containers.
Regenerate logo-64/192/512, favicon, and SVG from cube-only region.

Co-authored-by: truewhile <truewhile@users.noreply.github.com>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
Co-authored-by: truewhile <truewhile@users.noreply.github.com>
2026-09-02 16:26:28 +08:00
Cursor Agent 3304f09b1d Fix Auto Docker workflow failing on pull requests
The publish workflow bumps VERSION, pushes commits/tags, and publishes
images. It must not run on pull_request events where checkout is a
detached HEAD and git push fails. PR validation is already covered by ci.yml.

Co-authored-by: truewhile <truewhile@users.noreply.github.com>
2026-09-02 01:45:32 +00:00
truewhile 0e73e43cbd ci: 新增 beta 分支自动构建流水线
- 触发:push beta / PR 到 beta / 手动触发
- test-and-build:SPA 构建 + go vet/test/build + 三平台交叉编译
  (linux/amd64、linux/arm64、windows/amd64),版本号为
  {VERSION}-beta.{sha},二进制上传为 artifact
- docker-beta:多架构构建并推送 ghcr.io/{owner}/mmtl:beta
  (PR 事件不推镜像,仅推送 beta / 手动触发时推)
- 与 main 的发布流隔离:不做版本递增、不打 release tag
2026-09-01 14:12:31 +08:00
truewhile fe5b3bd56a 2 2026-08-27 11:33:50 +08:00
truewhile 9f5ff7e6f0 1 2026-08-27 11:07:18 +08:00
truewhile a81fbaa6a6 Update tag format to use lowercase 'mmtl'
Fix tag format in Auto-docker-publish workflow.
2026-08-24 17:51:17 +08:00
truewhile 8c3f5c53be 优化
优化
2026-08-24 17:41:21 +08:00
truewhile 44ca451cd4 优化
优化
2026-08-24 17:40:43 +08:00
truewhile 785f18d4b2 Change Docker tag format in workflow 2026-08-24 17:03:13 +08:00
truewhile 11685101eb Simplify version-and-publish job conditions
Removed conditional execution for the version-and-publish job.
2026-08-24 15:05:04 +08:00
truewhile 3641d084aa Remove GitHub Release creation step from workflow
Removed the optional step for creating a GitHub Release in the workflow.
2026-08-24 15:04:04 +08:00
truewhile deec4ead6d Update Auto-docker-publish workflow triggers
Removed workflow_run trigger and added push and pull_request triggers for main branch.
2026-08-24 08:54:00 +08:00
truewhile e657a5aa84 Change Docker image name in workflow 2026-08-24 08:42:19 +08:00
truewhile 6872e9f646 Add CI Success job to workflow
Signed-off-by: truewhile <62226914+truewhile@users.noreply.github.com>
2026-08-20 17:56:03 +08:00
truewhile 91cee6cb37 添加自动构建工作流
Signed-off-by: truewhile <62226914+truewhile@users.noreply.github.com>
2026-08-20 17:53:52 +08:00
truewhile 3edeb94c93 Update Docker image metadata extraction to use repo owner
Signed-off-by: truewhile <62226914+truewhile@users.noreply.github.com>
2026-08-18 09:48:58 +08:00
truewhile 8af0c676b5 Update Docker image repository in workflow
Signed-off-by: truewhile <62226914+truewhile@users.noreply.github.com>
2026-08-18 09:02:13 +08:00
ShukeBta 78de029ef3 fix: embed release version in system update status 2026-07-03 01:55:30 +08:00
ShukeBta 1b56469beb chore clean repository deployment files 2026-07-02 01:56:40 +08:00
ShukeBta 6bb06fac14 ci: disable automatic release on tag push 2026-06-28 16:44:37 +08:00
ShukeBta 284ec873bc Use compose deployment smoke in CI 2026-06-16 01:09:36 +08:00
ShukeBta 852fe6ead0 Stabilize smoke startup port 2026-06-16 00:58:07 +08:00
Shuke 93afa1aebb Delete .github/workflows/codeql.yml
Signed-off-by: Shuke <272197458+ShukeBta@users.noreply.github.com>
2026-06-15 01:05:44 +08:00
ShukeBta a177dc61dd fix emby clients and cloud playback controls 2026-06-13 12:08:57 +08:00
ShukeBta 93c9cb7dfb ci: automate release publishing 2026-05-30 13:09:51 +08:00
ShukeBta 773343d744 docs: add ghcr pull troubleshooting 2026-05-29 01:44:38 +08:00
ShukeBta 895444b90f ci: restore ghcr docker image publishing 2026-05-29 01:21:17 +08:00
ShukeBta b0387ed40e ci: publish docker image to docker hub 2026-05-29 01:13:47 +08:00
ShukeBta 32d7fb0f45 ci: publish artifacts only on version tags 2026-05-29 00:33:39 +08:00
ShukeBta 1051fb1825 chore: add favicon and harden release workflow 2026-05-28 23:40:54 +08:00
ShukeBta 05d49ca470 Add advanced discovery subscriptions 2026-05-28 22:21:48 +08:00
ShukeBta a6a1226ede Add release package publishing workflow 2026-05-28 21:36:54 +08:00
ShukeBta 2dfccfd779 Publish Docker latest package from CI 2026-05-28 17:48:34 +08:00
Kiro 77e3fdd1f6 test: add E2E smoke test script + CI gate
After deploying the binary against a fresh data dir and exercising every
major REST endpoint by hand, codify the verification as a re-runnable
script.

scripts/smoke-test.sh:
  - Spins up bin/mediastation-go against a tempdir.
  - Generates 3 sample clips (movie, tv, anime) + an external SRT.
  - Walks 26 assertions: health → auth → libraries → scan → ffprobe →
    season parser → search → range stream → HLS playlist → external
    subtitle → history → favourites → playlists → RBAC (alice 403) →
    NFO export → recycle bin → SPA fallback → graceful shutdown.
  - Tears the server down via SIGTERM and reports pass/fail counts.
  - Exits non-zero on any failure so CI can use it as a deployment gate.

Local verification on this branch: PASS=26  FAIL=0.

Wiring:
  - Makefile: new 'smoke' target, depends on 'build'.
  - .github/workflows/ci.yml: third job 'smoke' that depends on backend
    + frontend, installs ffmpeg, builds both halves, then runs the
    script. The CI pipeline now blocks merges that break end-to-end
    deployability.
2026-05-14 16:36:34 +00:00
Kiro d5cf5fb4b2 feat: bootstrap MediaStationGo (Go + React rewrite of MediaStation)
Adopt the cropflre/nowen-video tech stack and rebuild the project from
scratch:

  - Backend: Go 1.25 + Gin + GORM + SQLite (WAL) + JWT + WebSocket hub.
    Layered packages config / database / model / repository / service /
    middleware / handler. Default admin (admin/admin123) seeded on first
    run; /api routes for auth, libraries, media, stream and admin
    panels. WebSocket scan-progress events at /api/ws.
  - Frontend: React 18 + Vite 5 + Tailwind 3.4 + Zustand + axios +
    react-router 6 + lucide-react + framer-motion + hls.js. Pages for
    Login / Home / Library / Search / MediaDetail / Player / Admin
    (Library, Users, Settings tabs).
  - Distribution: multi-arch Dockerfile (frontend -> backend -> Alpine
    runtime), docker-compose.yml, GitHub Actions for CI and GHCR
    publish, Makefile, env-prefixed config (MEDIASTATION_*).
  - Docs: README, CONTRIBUTING, .env.example, config.example.yaml.

Backend builds, vets and tests pass. Frontend builds via tsc -b && vite
build (250 kB JS / 16 kB CSS, gzipped 84 / 4 kB).
2026-05-14 15:26:29 +00:00