Skip to content

Commit 163eb0f

Browse files
Add App Store price monitoring and complete public purchase lists
1 parent 748256f commit 163eb0f

24 files changed

Lines changed: 2529 additions & 57 deletions

‎AGENTS.md‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# 项目协作约定
2+
3+
- 始终使用简体中文交互。
4+
- 完成影响 App 行为的修复后,默认继续构建、运行相关验证、替换本地已安装的 AppNotes,并启动新版本供用户验收;不要停在源码修改或要求用户自行构建。
5+
- 替换前确认本地安装位置,保留用户数据;如系统权限要求审批,按工具流程申请。
6+
- 修复联网数据或缓存问题后,必须在已安装的真实 App 中触发相应刷新并核对界面结果;独立测试通过不能替代用户实际使用链路的验收。
7+
- 功能或使用方式变化时及时更新 README,提交前确认文档与实际行为一致。

‎README.md‎

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AppNotes
22

3-
原生 macOS 应用,用来记录已安装应用的用途、快捷键和提醒,并整理个人应用分类。
3+
原生 macOS 应用,用来记录应用用途、快捷键和提醒,整理个人应用分类,并关注 App Store 应用及内购的限免变化。
44

55
[![Build macOS](https://github.com/CallMeKingsley97/AppNotes/actions/workflows/macos.yml/badge.svg)](https://github.com/CallMeKingsley97/AppNotes/actions/workflows/macos.yml)
66
[![macOS](https://img.shields.io/badge/macOS-15%2B-black)](#系统要求)
@@ -20,6 +20,20 @@
2020
- 支持自建分类、批量管理应用、从右键菜单归类和查看分类成员。
2121
- 复制 App Store 应用链接后回到 AppNotes,可确认导入,并在「手动导入」中与本机应用分开。
2222
- 在顶部菜单栏保留快捷入口,同时在 Dock 显示应用图标。
23+
- 关注 App Store 本体与公开内购价格;确认从收费降为免费后,在菜单栏和三栏提醒页用不同标识提示。
24+
- 支持固定地区、未安装应用链接、未读/归档/撤销、单项暂停及自动检查开关。
25+
- 关注详情完整展示商店公开的内购列表,包括同名商品,并标注价格获取时间;可比价条目单独统计。
26+
27+
## 关注价格与限免
28+
29+
1. 在「关注的应用」中点击 `+`,粘贴 App Store 链接并确认商店地区;也可以从应用详情点击关注。
30+
2. 选择监控应用本体、内购或两者,保存关注。
31+
3. 选中应用查看最近获取的价格。点击「立即检查」更新单个应用,列表底部的刷新按钮检查已启用的关注项。
32+
4. 确认从收费降为免费后,在「限免提醒」和菜单栏查看记录,支持已读、归档和撤销。
33+
34+
「最近观察的价格」展示商店公开列表中的全部条目;「可比对」数量仅包含可以可靠比较价格的商品。同名商品仍会显示各自价格,但不会仅凭名称或列表位置认定为同一商品并推送限免提醒。
35+
36+
自动检查可在设置中暂停,暂停后仍可手动刷新。重新启动不会清空上次结果;更新应用后可手动刷新获取新结果。手动检查有至少 60 秒间隔,遇到 Apple 限流时会延后重试。
2337

2438
## 系统要求
2539

@@ -46,7 +60,7 @@ open Build/AppNotes.app
4660
| `zsh ui-review.sh` | 编译原生界面检查工具 |
4761
| `Build/UIReview.app/Contents/MacOS/UIReview` | 运行界面检查,需要在图形会话中执行 |
4862

49-
`Build/Tests/AppDetailsTests --live` 会请求真实 App Store 数据,需要联网。常规测试使用离线数据。
63+
先执行 `./build.sh`,再执行 `zsh test.sh` 生成测试程序。`Build/Tests/AppDetailsTests --live` 和 `Build/Tests/PriceMonitoringTests --live` 会请求真实 App Store 数据,需要联网。常规测试使用离线数据与隔离临时目录,覆盖完整内购列表、同名/缺价条目、地区与语言校验、缓存兼容及价格事件判定。
5064

5165
## 项目结构
5266

@@ -66,6 +80,10 @@ package.sh DMG 打包脚本
6680

6781
分类不会移动应用文件;删除分类不会卸载应用,也不会删除应用备注。
6882

83+
限免监控独立保存在 `~/Library/Application Support/AppNotes/price-monitoring.json`,只在 AppNotes 运行时约每小时检查;关闭主窗口仍可检查,退出、关机或休眠期间停止。没有系统通知、云端监控或自动购买。监控地区固定,不采用资料查询的跨地区回退或 24 小时缓存。
84+
85+
内购展示保留商店公开列表的全部条目及获取时间,包括同名和缺价条目;价格监控另行筛选名称唯一、价格明确的条目。中国大陆商店固定读取中文,其他地区固定读取英文,不随界面语言改变;旧英文记录迁移到中文时重新建立比价基准。公开页面不提供稳定商品 ID,也可能不包含全部内购。改名、同名、缺价和试用不会被推断为限免,不保证覆盖订阅优惠、账号专享或 App 内促销。首次关注已经免费的条目不提醒;有收费基线并经过两次免费观测才生成事件。价格与购买条件以所选商店及 App 内购买页面为准。
86+
6987
## 发布
7088

7189
推送 `v*` 标签会触发 GitHub Actions 构建,并上传 DMG 到对应的 GitHub Release。

‎Resources/en.lproj/Localizable.strings‎

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,97 @@
171171
"category.error" = "Couldn’t Update Categories";
172172
"category.saveFailed" = "The category couldn’t be saved. Your changes haven’t been applied. Check disk space and file permissions, then try again.";
173173
"category.loadFailed" = "Saved categories couldn’t be read. The original file was kept. Check the category data file, then reopen the app.";
174+
175+
/* Price monitoring */
176+
"monitor.title" = "Price monitoring";
177+
"monitor.reminders" = "Free offers";
178+
"monitor.watches" = "Watching";
179+
"monitor.kind.application" = "App free";
180+
"monitor.kind.inAppPurchase" = "In-app free";
181+
"monitor.scope.application" = "App price";
182+
"monitor.filter" = "Filter offers";
183+
"monitor.filter.all" = "All";
184+
"monitor.filter.unread" = "Unread";
185+
"monitor.filter.archived" = "Archived";
186+
"monitor.isRead" = "Read";
187+
"monitor.search" = "Search apps or purchases";
188+
"monitor.empty" = "No offers yet";
189+
"monitor.empty.help" = "Follow an app to see confirmed changes from paid to free here.";
190+
"monitor.select" = "Select an offer";
191+
"monitor.select.help" = "See the offer type, price change and latest observed status.";
192+
"monitor.watches.empty" = "Start watching apps";
193+
"monitor.watches.empty.help" = "Paste an App Store link. The app does not need to be installed.";
194+
"monitor.watches.select" = "Select a watched app";
195+
"monitor.watches.select.help" = "Review recent prices, scope and public purchase coverage.";
196+
"monitor.add" = "Add app";
197+
"monitor.add.help" = "Paste a store link, choose a region and verify the app before following.";
198+
"monitor.follow" = "Watch for free offers";
199+
"monitor.unfollow" = "Unfollow";
200+
"monitor.edit" = "Manage watch";
201+
"monitor.link" = "App Store link";
202+
"monitor.lookup" = "Verify app";
203+
"monitor.lookup.loading" = "Verifying app and public prices…";
204+
"monitor.region" = "Store region";
205+
"monitor.previewPrice" = "Current app price";
206+
"monitor.purchaseCount" = "Comparable public purchases: %d";
207+
"monitor.purchaseSnapshot" = "%d purchases listed by the store (including duplicate names)";
208+
"monitor.purchaseObserved" = "Purchase prices observed";
209+
"monitor.baselineNotice" = "Already-free prices do not trigger an alert when first followed. Offers appear after a confirmed drop; end dates are usually unknown.";
210+
"monitor.regionNotice" = "Changing region resets the price baseline. Previous regional offers remain in history.";
211+
"monitor.priceNotice" = "This is an observed price change with no known end date. Prices may have changed; verify on the purchase page in the selected App Store region.";
212+
"monitor.iapNotice" = "Only uniquely named purchases with explicit public prices are compared; the list may be incomplete. Subscription trials, account offers and in-app promotions may not be covered. Renamed or duplicate entries cannot be compared. Confirm the price inside the app.";
213+
"monitor.product" = "In-app purchase on offer";
214+
"monitor.dropped" = "Dropped to free";
215+
"monitor.detected" = "First observed";
216+
"monitor.confirmed" = "Confirmed";
217+
"monitor.observed" = "Latest observation";
218+
"monitor.current" = "Last observed price";
219+
"monitor.notChecking" = "Automatic checks are paused for this app";
220+
"monitor.latestPrices" = "Last observed prices";
221+
"monitor.unknown" = "Unavailable";
222+
"monitor.lastSuccess" = "Last complete check";
223+
"monitor.watchEnabled" = "Check this app";
224+
"monitor.paused" = "Paused";
225+
"monitor.runtime" = "Checks run about hourly while AppNotes is running, including with its window closed. Quitting, shutdown or sleep pauses checks. No system notifications are sent.";
226+
"monitor.automatic" = "Check prices automatically";
227+
"monitor.automatic.off" = "Automatic checks paused";
228+
"monitor.hourly" = "Checks about hourly while running";
229+
"monitor.check" = "Check now";
230+
"monitor.check.help" = "Check watched prices. Each app has a one-minute minimum interval; rate limits may delay a check.";
231+
"monitor.check.running" = "Checking prices…";
232+
"monitor.checking" = "Checking %d of %d";
233+
"monitor.read" = "Mark as read";
234+
"monitor.unread" = "Mark as unread";
235+
"monitor.readAll" = "Mark all as read";
236+
"monitor.archive" = "Archive";
237+
"monitor.unarchive" = "Unarchive";
238+
"monitor.menu.unread" = "%d unread free offers";
239+
"monitor.menu.all" = "View all free offers…";
240+
"monitor.status.free" = "Last confirmed free";
241+
"monitor.status.verifying" = "May have ended · checking";
242+
"monitor.status.ended" = "Returned to paid";
243+
"monitor.status.stale" = "Current price unverified";
244+
"monitor.coverage.pending" = "Purchases not yet checked";
245+
"monitor.coverage.none" = "No purchases listed by the store";
246+
"monitor.coverage.public" = "Watching public purchases";
247+
"monitor.coverage.partial" = "Some purchases cannot be compared";
248+
"monitor.coverage.unavailable" = "Purchase prices unavailable";
249+
"monitor.error.link" = "Enter a valid App Store app link.";
250+
"monitor.error.region" = "App not found in this region. Check the selected region.";
251+
"monitor.error.response" = "Store data could not be read. A retry is scheduled.";
252+
"monitor.error.identity" = "The returned app identity did not match. Its prices were ignored.";
253+
"monitor.error.rate" = "The store is limiting requests. Waiting to retry.";
254+
"monitor.error.price" = "App price unavailable. A retry is scheduled.";
255+
"monitor.error.purchases" = "Purchase prices unavailable. A retry is scheduled.";
256+
"monitor.error.network" = "Unable to reach the store. A retry is scheduled.";
257+
"monitor.error.version" = "Monitoring data was created by a newer version. Update AppNotes to continue.";
258+
"monitor.error.load" = "Monitoring data could not be read. Saving is disabled to preserve the files.";
259+
"monitor.error.recovered" = "Monitoring data was recovered from backup. The most recent change may need to be repeated.";
260+
"monitor.error.save" = "Changes could not be saved. Check disk space and file permissions, then retry.";
261+
"monitor.error.limit" = "You can watch up to 100 apps. Remove an existing watch to add another.";
262+
"monitor.error.duplicate" = "This app is already watched. Manage its region and scope in Watching.";
263+
"monitor.error.changed" = "Watch settings have changed. Reopen this editor to continue.";
264+
"monitor.error.scope" = "Select at least one offer type.";
265+
"monitor.undo.unfollow" = "Unfollowed. Offer history retained.";
266+
"monitor.undo.read" = "Offers marked as read";
267+
"monitor.undo.archive" = "Archive status updated";

‎Resources/zh-Hans.lproj/Localizable.strings‎

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,3 +171,97 @@
171171
"category.error" = "无法更新分类";
172172
"category.saveFailed" = "分类未能保存,本次更改尚未生效。请检查磁盘空间和文件权限后重试。";
173173
"category.loadFailed" = "无法读取已保存的分类。原文件已保留,请检查分类数据文件后重新打开应用。";
174+
175+
/* Price monitoring */
176+
"monitor.title" = "限免监控";
177+
"monitor.reminders" = "限免提醒";
178+
"monitor.watches" = "关注的应用";
179+
"monitor.kind.application" = "本体限免";
180+
"monitor.kind.inAppPurchase" = "内购限免";
181+
"monitor.scope.application" = "应用本体";
182+
"monitor.filter" = "筛选提醒";
183+
"monitor.filter.all" = "全部";
184+
"monitor.filter.unread" = "未读";
185+
"monitor.filter.archived" = "归档";
186+
"monitor.isRead" = "已读";
187+
"monitor.search" = "搜索名称或内购条目";
188+
"monitor.empty" = "暂无提醒";
189+
"monitor.empty.help" = "关注应用后,确认从收费降为免费时会在这里提醒。";
190+
"monitor.select" = "选择一条提醒";
191+
"monitor.select.help" = "查看限免类型、价格变化和最近核实的状态。";
192+
"monitor.watches.empty" = "开始关注应用";
193+
"monitor.watches.empty.help" = "粘贴 App Store 链接,即使尚未安装也能关注。";
194+
"monitor.watches.select" = "选择关注的应用";
195+
"monitor.watches.select.help" = "查看最近价格、监控范围和内购覆盖情况。";
196+
"monitor.add" = "添加关注";
197+
"monitor.add.help" = "粘贴商店链接,选择地区并核实应用后开始关注。";
198+
"monitor.follow" = "关注限免";
199+
"monitor.unfollow" = "取消关注";
200+
"monitor.edit" = "管理关注";
201+
"monitor.link" = "App Store 链接";
202+
"monitor.lookup" = "核实应用";
203+
"monitor.lookup.loading" = "正在核实应用与公开价格…";
204+
"monitor.region" = "商店地区";
205+
"monitor.previewPrice" = "本体当前价格";
206+
"monitor.purchaseCount" = "可比对 %d 个公开内购条目";
207+
"monitor.purchaseSnapshot" = "商店公开的 %d 个内购条目(含同名条目)";
208+
"monitor.purchaseObserved" = "内购价格获取时间";
209+
"monitor.baselineNotice" = "首次关注时已免费不会产生提醒。确认降价后才会提示,优惠结束时间通常未知。";
210+
"monitor.regionNotice" = "更换地区会重新建立价格基线,旧地区提醒保留为历史。";
211+
"monitor.priceNotice" = "这是已观察到的价格变化,结束时间未知。价格可能已改变,请以所选地区 App Store 的实际购买页面为准。";
212+
"monitor.iapNotice" = "仅比对公开列表中名称唯一、价格明确的内购条目,列表可能不完整。无法保证覆盖订阅试用、账号专享或 App 内促销;改名和同名条目暂停比对。请在 App 内确认购买价格。";
213+
"monitor.product" = "限免内购条目";
214+
"monitor.dropped" = "已降为免费";
215+
"monitor.detected" = "首次发现";
216+
"monitor.confirmed" = "复核通过";
217+
"monitor.observed" = "最近价格观察";
218+
"monitor.current" = "最近观察价格";
219+
"monitor.notChecking" = "此应用当前未自动检查";
220+
"monitor.latestPrices" = "最近观察的价格";
221+
"monitor.unknown" = "无法核实";
222+
"monitor.lastSuccess" = "最近完整检查";
223+
"monitor.watchEnabled" = "检查此应用";
224+
"monitor.paused" = "已暂停";
225+
"monitor.runtime" = "AppNotes 运行时约每小时检查;关闭主窗口仍可检查,退出、关机和休眠期间暂停。暂不发送系统通知。";
226+
"monitor.automatic" = "自动检查价格";
227+
"monitor.automatic.off" = "自动检查已暂停";
228+
"monitor.hourly" = "运行期间约每小时检查";
229+
"monitor.check" = "立即检查";
230+
"monitor.check.help" = "检查关注的价格;同一应用至少间隔一分钟,限流时稍后重试。";
231+
"monitor.check.running" = "正在检查价格…";
232+
"monitor.checking" = "正在检查 %d / %d";
233+
"monitor.read" = "标为已读";
234+
"monitor.unread" = "标为未读";
235+
"monitor.readAll" = "全部标为已读";
236+
"monitor.archive" = "归档";
237+
"monitor.unarchive" = "移出归档";
238+
"monitor.menu.unread" = "%d 条未读限免提醒";
239+
"monitor.menu.all" = "查看全部限免提醒…";
240+
"monitor.status.free" = "最近核实为免费";
241+
"monitor.status.verifying" = "疑似已恢复收费,待复核";
242+
"monitor.status.ended" = "已恢复收费";
243+
"monitor.status.stale" = "当前价格待核实";
244+
"monitor.coverage.pending" = "内购尚未核实";
245+
"monitor.coverage.none" = "商店未列出内购";
246+
"monitor.coverage.public" = "监控已公开的内购";
247+
"monitor.coverage.partial" = "部分内购无法比对";
248+
"monitor.coverage.unavailable" = "内购价格暂无法核实";
249+
"monitor.error.link" = "请输入有效的 App Store 应用链接。";
250+
"monitor.error.region" = "所选地区未找到此应用,请检查地区。";
251+
"monitor.error.response" = "商店数据暂时无法读取,稍后会重试。";
252+
"monitor.error.identity" = "商店返回的应用身份不符,本次价格未采用。";
253+
"monitor.error.rate" = "商店暂时限制请求,正在等待重试。";
254+
"monitor.error.price" = "本体价格暂无法核实,将稍后重试。";
255+
"monitor.error.purchases" = "内购价格暂无法核实,将稍后重试。";
256+
"monitor.error.network" = "暂时无法连接商店,将稍后重试。";
257+
"monitor.error.version" = "监控数据来自更高版本,请更新 AppNotes 后使用。";
258+
"monitor.error.load" = "监控数据无法读取,已停止写入以保留原文件。";
259+
"monitor.error.recovered" = "已从备份恢复监控数据,最近一次更改可能需要重新操作。";
260+
"monitor.error.save" = "更改未能保存,请检查磁盘空间和文件权限后重试。";
261+
"monitor.error.limit" = "最多可关注 100 个应用,请先移除不再需要的关注。";
262+
"monitor.error.duplicate" = "已关注此应用,请在关注列表中管理地区和范围。";
263+
"monitor.error.changed" = "关注设置已改变,请重新打开后编辑。";
264+
"monitor.error.scope" = "请至少选择一种限免类型。";
265+
"monitor.undo.unfollow" = "已取消关注,历史提醒已保留";
266+
"monitor.undo.read" = "提醒已标为已读";
267+
"monitor.undo.archive" = "已更新归档状态";

0 commit comments

Comments
 (0)