-
Notifications
You must be signed in to change notification settings - Fork 3
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
VON0000
wants to merge
34
commits into
laorange:master
Choose a base branch
from
VON0000:tauri
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
c122af2
build: 使用tauri编译程序
VON0000 a5036fc
build: 使用tauri打包安装包
VON0000 11e117e
chore: 更新一些配置信息
laorange 88bbe5a
Create compile.yml
VON0000 00fdc22
Update compile.yml
VON0000 0c2ddc3
Merge pull request #1 from VON0000/master
VON0000 8592e16
Update compile.yml
VON0000 579a120
Update compile.yml
VON0000 b6eccfe
Update compile.yml
VON0000 cbda77b
Update compile.yml
VON0000 88fd1c0
Update compile.yml
VON0000 629dbeb
Update compile.yml
VON0000 2f54aa7
Update compile.yml
VON0000 375c2f9
Update compile.yml
VON0000 0175f46
Update compile.yml
VON0000 dfed9ce
Update compile.yml
VON0000 27308a6
Update compile.yml
VON0000 de98382
Update compile.yml
VON0000 ffc1f90
Update compile.yml
VON0000 98f095e
Update compile.yml
VON0000 f33c9f1
Update compile.yml
VON0000 b645fee
Update compile.yml
VON0000 fcbdcb1
Update compile.yml
VON0000 2c69551
Update compile.yml
VON0000 4c02452
Update compile.yml
VON0000 e474cd6
Update compile.yml
VON0000 02bf7d9
Update compile.yml
VON0000 f4ca803
Update compile.yml
VON0000 d560d43
Update compile.yml
VON0000 7b46e33
Update compile.yml
VON0000 88c2912
Update compile.yml
VON0000 8f98513
Update compile.yml
VON0000 d0996f7
Update compile.yml
VON0000 d3e22f7
Merge pull request #2 from VON0000/workflow
VON0000 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: Compile | ||
|
||
on: | ||
push: | ||
branches: [ "master", "workflow" ] | ||
pull_request: | ||
branches: [ "master", "workflow" ] | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@v4.0.3 | ||
with: | ||
node-version: 20 | ||
|
||
- name: install Rust stable | ||
uses: dtolnay/rust-toolchain@stable | ||
|
||
- name: Setup pnpm | ||
uses: pnpm/action-setup@v4.0.0 | ||
with: | ||
version: 9.3.0 | ||
run_install: false | ||
|
||
- name: Install dependencies of pnpm | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: compile | ||
run: pnpm run tauri-build | ||
|
||
- name: List generated files | ||
run: dir src-tauri/target/release/bundle/nsis | ||
|
||
- name: Debug ref | ||
run: echo "github.ref is ${{ github.ref }}" | ||
|
||
- name: Create GitHub Release | ||
id: create_release | ||
uses: softprops/action-gh-release@v2 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: src-tauri/target/release/bundle/nsis/*.exe | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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作为根目录包管理的仓库。此处需要加上