GithubHelp home page GithubHelp logo

ycrao / electron-app-topgo-alarm Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 329 KB

在任务栏提醒金价的小工具 Gold Price Tray Reminder

License: MIT License

HTML 7.41% JavaScript 92.59%
gold price tray-application electron-app

electron-app-topgo-alarm's Introduction

electron-app-topgo-alarm

已归档不再维护,请改用本人 Golang 编写的程序:PriceReminder,源码编译支持 Windows/MacOS/Linux

在任务栏提醒金价的小工具,目前仅显示 XAU/国际黄金 (单位:美元/盎司) 与 AUTD/上海黄金延期 (单位:人民币元/每克)价格,实时价格来源于新浪财经。

Screenshot / 截图

  • Linux Ubuntu 环境下运行截图:

linux_snap_1.png

  • Mac 环境下运行截图:

mac_snap_2@2x.png

Reference / 参考资料

Installation & Usage / 安装与使用

当前操作系统请安装项目目录下 LcdD.ttf 字体。

git clone https://github.com/ycrao/electron-app-topgo-alarm.git
cd electron-app-topgo-alarm
# 安装依赖
npm install
# 本地开发
npm run start
# 编译 mac 二进制文件 [已验证过]
npm run build_mac
# 编译 linux 下二进制文件 [已验证过]
npm run build_linux
# 该命令暂未验证,是否能成功编译出二进制可执行安装文件,有编译成功过或存在问题的可反馈到 issue 中
npm run build_win
# 不建议在 Windows 下编译使用,因为任务栏 Tray 图标太小,不能看清楚,后期统一使用悬浮窗

FAQ / 常见问题

1. 下载依赖缓慢超时

可以考虑使用 淘宝镜像 ,如果还有非 canvas 依赖(如node-sass)错误,可参考 安装 node-sass 的正确姿势 文章。

npm install --registry=https://registry.npm.taobao.org
npm install --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
npm install --canvas_binary_host_mirror=https://npm.taobao.org/mirrors/node-canvas-prebuilt/
...

2. canvas 依赖编译失败

请参考 官方WIKI文档 解决,目前本人在 macOS MojaveUbuntu 16.04 LTS 系统下编译安装成功。

3. 尝试各种办法都安装编译失败?

请下载作者已编译好的二进制文件,目前仅提供 macOSLinux (仅在 macOS MojaveUbuntu 16.04 LTS 环境下经过验证,其它环境请自行验证)操作系统下 二进制文件

electron-app-topgo-alarm's People

Contributors

ycrao avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.