Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 基于tauri将网页打包为桌面程序 #5

Open
wants to merge 34 commits into
base: master
Choose a base branch
from

Conversation

VON0000
Copy link

@VON0000 VON0000 commented Aug 21, 2024

No description provided.

@laorange laorange changed the title build: 使用tauri编译程序 feat: 基于tauri将网页打包为桌面程序 Sep 9, 2024
Copy link
Owner

@laorange laorange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢,目前的部分已检查,能够正常运行。一些小改动备注在review中了。

期待的功能:

  • 基于GitHub Action,能将tauri打包好的产物放在Release中

name = "app"
version = "0.1.0"
description = "A Tauri App"
authors = ["you"]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

《you》🫠

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

和package.json/tauri.config里的信息最好是匹配的

"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build --base=./",
"build-flask": "vue-tsc --noEmit && vite build --base=/static/",
"build-go": "vue-tsc --noEmit && vite build --base=/dist/",
"preview": "vite preview"
"preview": "vite preview",
"tauri-build": "tauri build"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

像这样新增一个需要执行命令的,tauri build这类的命令,最好也加入到package.json的scripts当中,因为这是个以node作为根目录包管理的仓库。此处需要加上

@laorange
Copy link
Owner

laorange commented Sep 9, 2024

建议先在你Fork的仓库中试试GitHub Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants