Skip to content

Commit

Permalink
feat: 添加 README.md 并更新项目配置
Browse files Browse the repository at this point in the history
- 新增 README.md 文件,介绍项目背景和安装方法
- 更新 .gitignore 文件,排除构建输出目录
- 移除前端自动生成的 Auth 函数
- 更新 wails.json 配置,修改应用名称和图标
  • Loading branch information
suanju committed Dec 4, 2024
1 parent b55c35f commit b896689
Show file tree
Hide file tree
Showing 11 changed files with 66 additions and 10 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
build
build/bin
build/darwin
node_modules
frontend/dist
notes/
Expand Down
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## 谷歌验证器桌面端

###### 由于谷歌验证器未提供桌面端端,所选wails简单封装一个使用。已实现基本功能

| # | Version |
| ------------ | ------------ |
| Wails | v2.9.2 |
| Go | v1.21.5 |
| Node.js | v20.13.1|
| npm | v10.5.2 |

## 安装

构建请查看[wails 文档](https://wails.io/zh-Hans/docs/introduction)

1. 执行 `go install github.com/wailsapp/wails/v2/cmd/wails@latest` 安装 Wails CLI。
2. 执行 `wails build`,即可构建二进制文件

## 运行截图

<img src="./assets/screenshot/image.png" />
<img src="./assets/screenshot/image2.png" />
Binary file added assets/screenshot/image.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/screenshot/image2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/appicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added build/windows/icon.ico
Binary file not shown.
15 changes: 15 additions & 0 deletions build/windows/info.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"fixed": {
"file_version": "{{.Info.ProductVersion}}"
},
"info": {
"0000": {
"ProductVersion": "{{.Info.ProductVersion}}",
"CompanyName": "{{.Info.CompanyName}}",
"FileDescription": "{{.Info.ProductName}}",
"LegalCopyright": "{{.Info.Copyright}}",
"ProductName": "{{.Info.ProductName}}",
"Comments": "{{.Info.Comments}}"
}
}
}
15 changes: 15 additions & 0 deletions build/windows/wails.exe.manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<assemblyIdentity type="win32" name="com.wails.{{.Name}}" version="{{.Info.ProductVersion}}.0" processorArchitecture="*"/>
<dependency>
<dependentAssembly>
<assemblyIdentity type="win32" name="Microsoft.Windows.Common-Controls" version="6.0.0.0" processorArchitecture="*" publicKeyToken="6595b64144ccf1df" language="*"/>
</dependentAssembly>
</dependency>
<asmv3:application>
<asmv3:windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true/pm</dpiAware> <!-- fallback for Windows 7 and 8 -->
<dpiAwareness xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">permonitorv2,permonitor</dpiAwareness> <!-- falls back to per-monitor if per-monitor v2 is not supported -->
</asmv3:windowsSettings>
</asmv3:application>
</assembly>
2 changes: 0 additions & 2 deletions frontend/wailsjs/go/backend/App.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// This file is automatically generated. DO NOT EDIT
import {context} from '../models';

export function Auth():Promise<void>;

export function DomReady(arg1:context.Context):Promise<void>;

export function Init():Promise<void>;
Expand Down
4 changes: 0 additions & 4 deletions frontend/wailsjs/go/backend/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT

export function Auth() {
return window['go']['backend']['App']['Auth']();
}

export function DomReady(arg1) {
return window['go']['backend']['App']['DomReady'](arg1);
}
Expand Down
15 changes: 12 additions & 3 deletions wails.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,22 @@
{
"$schema": "https://wails.io/schemas/config.v2.json",
"name": "walisapp",
"outputfilename": "walisapp",
"name": "googleValidator",
"outputfilename": "googleValidator",
"frontend:install": "npm install",
"frontend:build": "npm run build",
"frontend:dev:watcher": "npm run dev",
"frontend:dev:serverUrl": "auto",
"build": {
"outputType": "desktop",
"platform": "all",
"icon": {
"windows": "assets/app.ico",
"darwin": "assets/app.icns",
"linux": "assets/app.png"
}
},
"author": {
"name": "橡皮擦",
"email": "2506152074@qq.com"
}
}
}

0 comments on commit b896689

Please sign in to comment.