CWY Plugin Marketplace
站內外掛市集,用來集中管理 Howard 與 Woody 的自訂外掛清單與安裝資訊。
★ 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你剛剛遇到的兩個重點
frontend-designskill 在目前環境不可用(找不到該 skill)。- 「檢查更新沒反應」常見原因是後台 JS/CSS 快取;目前已改為用
filemtime自動更新資源版本。
外掛更新流程(市集能出現「更新」按鈕)
- 修改子外掛主檔
Version(要比目前安裝版本高)。 - 重新打包 zip:
powershell -ExecutionPolicy Bypass -File ".\build-packages.ps1"
- 上傳 zip 到來源(GitHub Release 或自架 packages URL)。
- 檔名必須是:
slug-version.zip
例:cwy-coupon-center-1.2.0.zip - 到後台 CWY 外掛市集按「檢查更新」。
GitHub Release 建議指令
gh auth login
gh release create v1.2.0 --title "v1.2.0" --notes "changelog" .\packages\*.zip
若「檢查更新」還是沒反應,依序排查
- 停用再啟用
CWY Plugin Marketplace - 瀏覽器強制重整:
Ctrl + F5 - 確認後台設定:
- GitHub Repo URL 正確
- 包檔來源網址正確(若使用自架)
- 確認 Release 資產是公開可下載(
browser_download_url可直接開) - 確認 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