WP Manifestindependent plugin directory
manifest / updates / wp-plugin

CWY Plugin Marketplace

站內外掛市集,用來集中管理 Howard 與 Woody 的自訂外掛清單與安裝資訊。

by CWY · github.com/woodywoody40/wp-plugin

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/woodywoody40/wp-plugin/archive/refs/heads/main.zip

你剛剛遇到的兩個重點

  1. frontend-design skill 在目前環境不可用(找不到該 skill)。
  2. 「檢查更新沒反應」常見原因是後台 JS/CSS 快取;目前已改為用 filemtime 自動更新資源版本。

外掛更新流程(市集能出現「更新」按鈕)

  1. 修改子外掛主檔 Version(要比目前安裝版本高)。
  2. 重新打包 zip:
    • powershell -ExecutionPolicy Bypass -File ".\build-packages.ps1"
  3. 上傳 zip 到來源(GitHub Release 或自架 packages URL)。
  4. 檔名必須是:slug-version.zip
    例:cwy-coupon-center-1.2.0.zip
  5. 到後台 CWY 外掛市集按「檢查更新」。

GitHub Release 建議指令

gh auth login
gh release create v1.2.0 --title "v1.2.0" --notes "changelog" .\packages\*.zip

若「檢查更新」還是沒反應,依序排查

  1. 停用再啟用 CWY Plugin Marketplace
  2. 瀏覽器強制重整:Ctrl + F5
  3. 確認後台設定:
    • GitHub Repo URL 正確
    • 包檔來源網址正確(若使用自架)
  4. 確認 Release 資產是公開可下載(browser_download_url 可直接開)
  5. 確認 zip 檔名格式正確、版本號真的比本機版本高

Git 推送常見問題

remote origin already exists

git remote set-url origin https://github.com/woodywoody40/wp-plugin.git
git push -u origin main

src refspec main does not match any

代表沒有 commit,先提交一次再推:

git add -A
git commit -m "init"
git branch -M main
git push -u origin main