diff --git a/README.md b/README.md index 6a7dc1a5bd236fc8a92ead03d45f6582cfea7234..255bd7f57aa0b6ef989ac060de4f9911ecd8cc34 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,18 @@ Chat

+## 🛠️ 小更新,大改变:Postcat 正在重构中! 🚀 + +嘿,Postcat 的朋友们! + +只是想快速告诉大家,我们的项目现在正处在一次激动人心的重构旅程中。这并不意味着 Postcat 没有得到维护,恰恰相反,我们正在给它注入新的活力! + +在这个阶段,可能会有些静悄悄的,但请相信,我们在幕后正忙得不可开交。我们致力于让 Postcat 变得更酷、更易用,只是需要一点时间来打磨和完善。 + +所以,请继续关注,不久的将来,你们会见到一个焕然一新的 Postcat。你的支持和耐心是我们最宝贵的动力! + +敬请期待,更多精彩即将来临! + ## 概述 **Postcat** 是一个强大的开源、免费的、跨平台(Windows、Mac、Linux、Browsers...)的 **API 开发测试工具**,支持 REST、Websocket 等协议(即将支持 GraphQL、gRPC、TCP、UDP),帮助你加速完成 API 开发和测试工作。它非常适合中小团队及个人使用。 @@ -70,6 +82,18 @@
也欢迎给我们多多提需求~
+## 💪 贡献者 💪 +

+感谢你们让美好发生! +

+ + + + + +
+Power by contrib.rocks. +
## Bug 和需求反馈 @@ -86,7 +110,6 @@ ![](http://data.eolinker.com/course/NKhRRF668370911c8b8ea8a0887b5d62e71b0f1a22ad76a.png) - ## 开发 Postcat
@@ -161,4 +184,3 @@ yarn add @angular/cli --global | ------------ | ------------ | |yarn test |执行单元测试 | - diff --git a/scripts/baseConfig.ts b/scripts/baseConfig.ts new file mode 100644 index 0000000000000000000000000000000000000000..6f9bc0f174461e2d0b6c54860b505ab990bbf32b --- /dev/null +++ b/scripts/baseConfig.ts @@ -0,0 +1,72 @@ +import { Configuration } from 'electron-builder'; + +import { COMMON_APP_CONFIG } from '../src/environment'; + +export const ELECTRON_BUILD_CONFIG: Configuration = { + appId: '.postcat.io', + productName: 'Postcat', + asar: true, + directories: { + output: 'release/' + }, + files: [ + 'out/app/**/*.js*', + 'out/platform/**/*.js*', + 'out/environment.js', + 'out/shared/**/*.js*', + 'src/browser/dist/**/*', + 'out/browser/src/**/*.js*', + 'out/node/test-server/**/*.js*', + 'out/app/common/**/*', + '!**/*.ts' + ], + publish: [ + 'github', + { + provider: 'generic', + url: COMMON_APP_CONFIG.BASE_DOWNLOAD_URL + } + ], + generateUpdatesFilesForAllChannels: true, + nsis: { + // 指定guid,此guid会存放在注册表中,如果没有指定则系统会自动生成 + guid: 'Postcat', + oneClick: false, + allowElevation: true, + allowToChangeInstallationDirectory: true, + // for win - 将协议写入主机的脚本 + include: 'scripts/urlProtoco.nsh' + }, + protocols: [ + // for macOS - 用于在主机注册指定协议 + { + name: 'eoapi', + schemes: ['eoapi'] + } + ], + portable: { + splashImage: 'src/app/common/images/postcat.bmp' + }, + dmg: { + sign: false + }, + afterSign: 'scripts/notarize.js', + linux: { + icon: 'src/app/common/images/', + target: ['AppImage'] + }, + mac: { + icon: 'src/app/common/images/512x512.png', + hardenedRuntime: true, + category: 'public.app-category.productivity', + gatekeeperAssess: false, + entitlements: 'scripts/entitlements.mac.plist', + entitlementsInherit: 'scripts/entitlements.mac.plist', + target: [ + { + target: 'default', + arch: ['x64', 'arm64'] + } + ] + } +}; diff --git a/scripts/build.ts b/scripts/build.ts index 739e43414681cab4b3bfc27ee537b99fa252616c..3d8a817b0df02b83d83144382992ff91a5c4dbd8 100644 --- a/scripts/build.ts +++ b/scripts/build.ts @@ -1,16 +1,16 @@ -import { sign, doSign } from 'app-builder-lib/out/codeSign/windowsCodeSign'; -import { build, BuildResult, Platform } from 'electron-builder'; +import { doSign, sign } from 'app-builder-lib/out/codeSign/windowsCodeSign'; import type { Configuration } from 'electron-builder'; +import { Platform, build } from 'electron-builder'; import minimist from 'minimist'; import YAML from 'yaml'; import pkgInfo from '../package.json'; -import { COMMON_APP_CONFIG } from '../src/environment'; +import { ELECTRON_BUILD_CONFIG } from './baseConfig'; -import { execSync, exec, spawn } from 'node:child_process'; +import { exec, execSync, spawn } from 'node:child_process'; import { createHash } from 'node:crypto'; -import { copyFileSync, createReadStream, readFileSync, writeFileSync } from 'node:fs'; -import path, { resolve } from 'node:path'; +import { createReadStream, readFileSync, writeFileSync } from 'node:fs'; +import path from 'node:path'; import { exit, platform } from 'node:process'; const pkgPath = path.join(__dirname, '../package.json'); @@ -52,74 +52,7 @@ function hashFile(file: string, algorithm = 'sha512', encoding: 'base64' | 'hex' .pipe(hash, { end: false }); }); } -export const ELECTRON_BUILD_CONFIG: Configuration = { - appId: '.postcat.io', - productName: 'Postcat', - asar: true, - directories: { - output: 'release/' - }, - files: [ - 'out/app/**/*.js*', - 'out/platform/**/*.js*', - 'out/environment.js', - 'out/shared/**/*.js*', - 'src/browser/dist/**/*', - 'out/browser/src/**/*.js*', - 'out/node/test-server/**/*.js*', - 'out/app/common/**/*', - '!**/*.ts' - ], - publish: [ - 'github', - { - provider: 'generic', - url: COMMON_APP_CONFIG.BASE_DOWNLOAD_URL - } - ], - generateUpdatesFilesForAllChannels: true, - nsis: { - // 指定guid,此guid会存放在注册表中,如果没有指定则系统会自动生成 - guid: 'Postcat', - oneClick: false, - allowElevation: true, - allowToChangeInstallationDirectory: true, - // for win - 将协议写入主机的脚本 - include: 'scripts/urlProtoco.nsh' - }, - protocols: [ - // for macOS - 用于在主机注册指定协议 - { - name: 'eoapi', - schemes: ['eoapi'] - } - ], - portable: { - splashImage: 'src/app/common/images/postcat.bmp' - }, - dmg: { - sign: false - }, - afterSign: 'scripts/notarize.js', - linux: { - icon: 'src/app/common/images/', - target: ['AppImage'] - }, - mac: { - icon: 'src/app/common/images/512x512.png', - hardenedRuntime: true, - category: 'public.app-category.productivity', - gatekeeperAssess: false, - entitlements: 'scripts/entitlements.mac.plist', - entitlementsInherit: 'scripts/entitlements.mac.plist', - target: [ - { - target: 'default', - arch: ['x64', 'arm64'] - } - ] - } -}; + const config: Configuration = { ...ELECTRON_BUILD_CONFIG, win: { diff --git a/scripts/buildNoSign.ts b/scripts/buildNoSign.ts index 3fe2009ecdd83d569f9e5b16a7be034fcd26d793..62b9ff9948afe4d3e6a9f5e9f0ab53d3c0e4e128 100644 --- a/scripts/buildNoSign.ts +++ b/scripts/buildNoSign.ts @@ -1,15 +1,14 @@ -import { sign, doSign } from 'app-builder-lib/out/codeSign/windowsCodeSign'; -import { build, BuildResult, Platform } from 'electron-builder'; +import { sign } from 'app-builder-lib/out/codeSign/windowsCodeSign'; import type { Configuration } from 'electron-builder'; +import { Platform, build } from 'electron-builder'; import minimist from 'minimist'; -import YAML from 'yaml'; import pkgInfo from '../package.json'; -import { ELECTRON_BUILD_CONFIG } from './build'; +import { ELECTRON_BUILD_CONFIG } from './baseConfig'; import { exec, spawn } from 'node:child_process'; import { writeFileSync } from 'node:fs'; -import path, { resolve } from 'node:path'; +import path from 'node:path'; import { exit, platform } from 'node:process'; const pkgPath = path.join(__dirname, '../package.json'); diff --git a/wiki/README.en.md b/wiki/README.en.md index 670a7e028179e5b4ce51c789c69c5b46ab0ff51a..108268ba3aff8cac91bb50601ca2e117febf784b 100644 --- a/wiki/README.en.md +++ b/wiki/README.en.md @@ -10,6 +10,18 @@ Chat

+## `🛠️ A Little Update, A Big Transformation: Postcat is Undergoing a Revamp! 🚀 + +Hey there, Postcat friends! + +Just a quick shout-out to let you all know that our project is currently on an exciting journey of restructuring. It's not that Postcat is unattended; in fact, we're actively injecting new energy into it! + +Things might seem a bit quiet for now, but rest assured, we're busy behind the scenes. We're committed to making Postcat cooler and more user-friendly - it just takes a bit of time to polish and perfect. + +So, stay tuned! Soon, you'll be meeting a revamped and rejuvenated Postcat. Your support and patience mean the world to us! + +Exciting updates are on the horizon, stay tuned!` + ![Postcat UI](https://data.eolink.com/ADAR6cL7e479c785ec305f5c60de95ce1a2a88da408039b) Postcat is a powerful open source, cross-platform (Windows, Mac, Linux, Browsers...) **API development and testing tool** that supports REST, Websocket and other protocols (soon to support GraphQL, gRPC, TCP, UDP), helping you speed up the completion of API Development and testing work. @@ -38,6 +50,19 @@ Therefore, Postcat is theoretically an API product with infinite possibilities. Learn more:[Github Project](https://github.com/orgs/Postcatlab/projects/3) +## 💪 Contributors 💪 +

+Thank you for making good things happen! +

+ + + + + +
+Power by contrib.rocks. +
+ ## Bug and Feature Request If you'd like to contact us, please create a [Github issue](https://github.com/Postcatlab/postcat/issues). Thank you!