Add release hash script and NapCat file-hash UI
Add a new .github/scripts/publish-release-hash.mjs to compute SHA512 for Shell/Framework napcat.mjs, maintain a release.json (keep last 100 entries) and write it to a separate hash repo. Wire the script into .github/workflows/release.yml to clone NapNeko/napcat-release-hash and publish hashes on release. Backend: expose GET /base/GetNapCatFileHash to compute napcat.mjs SHA512. Frontend: add WebUIManager.GetNapCatFileHash and show a join-password snippet on About page by combining file hash and user UIN (hashed with CryptoJS); update About page links to QQ groups. Update README and localized docs to list community QQ groups. Error handling and basic logging added.
This commit is contained in:
1 parent
fbba3d5ade
commit
4c8419d5ab
13 files changed
+274
-13
No files matched your search
@@ -340,4 +340,11 @@ export default class WebUIManager {
|
||||
);
|
||||
return data.data;
|
||||
}
|
||||
|
||||
public static async GetNapCatFileHash () {
|
||||
const { data } = await serverRequest.get<ServerResponse<{ hash: string; file: string; algorithm: string; }>>(
|
||||
'/base/GetNapCatFileHash'
|
||||
);
|
||||
return data.data;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user