当前位置: 首页 > news >正文

网站 空间 购买大连开发区盛京医院电话

网站 空间 购买,大连开发区盛京医院电话,软文网站名称,南昌网上服务这些error的坑,肯定是很多人不想看到的,我的开源软件PakePlus是使用tauri开发的,PakePlus是一个界面化将任何网站打包为轻量级跨平台软件的程序,利用Tauri轻松构建轻量级多端桌面应用和多端手机应用,为了实现发布的时候…

这些error的坑,肯定是很多人不想看到的,我的开源软件PakePlus是使用tauri开发的,PakePlus是一个界面化将任何网站打包为轻量级跨平台软件的程序,利用Tauri轻松构建轻量级多端桌面应用和多端手机应用,为了实现发布的时候支持mac的inter芯片和arm芯片,还有windows的inter芯片和arm芯片,需要编写github action的编译文件build.yml,tauri官网支持的并不是很完善,需要手动添加额外的平台,官方文档:GitHub | Tauri

这里记录一下编译的时候报错的解决办法,以及一个可以直接复制过去使用的文件。

常见报错

1.没有给x86_64-pc-windows-msvc配置target就会报下面的错

D:\a\PakePlus\PakePlus\src-tauri\target\release\bundle\nsis\PakePlus_0.3.2_x64-setup.exe

86Found release with tag main.

87Deleting existing PakePlus_0.3.2_x64_en-US.msi...

88Uploading PakePlus_0.3.2_x64_en-US.msi...

89Error: Not Found - REST API endpoints for release assets - GitHub Docs

解决办法:添加target

2.没有添加target属性还会报这个错

Run rustup target add

4error: error: the following required arguments were not provided:

5 <target>...

7Usage: rustup target add <target>...

9For more information, try '--help'.

因为Install rust target阶段需要安装声明好的依赖,没有就会报错:

3.没有安装aarch64-pc-windows-msvc依赖导致的

✓ built in 10.25s

53 Error failed to build app: Target aarch64-pc-windows-msvc is not installed (installed targets: i686-pc-windows-msvc, x86_64-pc-windows-gnu, x86_64-pc-windows-msvc). Please run `rustup target add aarch64-pc-windows-msvc`.

54 ELIFECYCLE  Command failed with exit code 1.

55Error: Command failed with exit code 1: pnpm tauri build --target aarch64-pc-windows-msvc

要编译生成arm架构的windows安装包,就需要这个依赖支持,所以需要添加下面的步骤,然后配合matrix的平台一起使用:

4.在linux系统中安装依赖环境

Reading state information...

30E: Unable to locate package libwebkit2gtk-4.1-dev

31E: Couldn't find any package by glob 'libwebkit2gtk-4.1-dev'

32E: Couldn't find any package by regex 'libwebkit2gtk-4.1-dev'

33Error: Process completed with exit code 100.

Sync node version and setup cache

0s

install Rust stable

0s

Rust cache

0s

install frontend dependencies

0s

Run tauri-apps/tauri-action@v0

0s

Post Run pnpm/action-setup@v3

0s

Post Setup node

0s

Post Run actions/checkout@v4

0s

Complete job

0s

需要增加这一步:

分享一个直接可以使用的文件:

name: Release
on:push:tags:- 'v*'workflow_dispatch:inputs:branch:description: 'Branch to run the workflow on'required: truedefault: 'template'jobs:publish-tauri:permissions:contents: writestrategy:fail-fast: falsematrix:include:- platform: 'macos-latest' # for Arm based macs (M1 and above).target: 'aarch64-apple-darwin'args: '--target aarch64-apple-darwin'- platform: 'macos-latest' # for Intel based macs.target: 'x86_64-apple-darwin'args: '--target x86_64-apple-darwin'- platform: 'ubuntu-20.04'target: 'x86_64-unknown-linux-gnu'args: ''- platform: 'windows-latest'target: 'x86_64-pc-windows-msvc'- platform: 'windows-latest'target: 'i686-pc-windows-msvc'- platform: 'windows-latest'target: 'aarch64-pc-windows-msvc'args: '--target aarch64-pc-windows-msvc'runs-on: ${{ matrix.platform }}steps:- name: Checkout repositoryuses: actions/checkout@v3- name: Install rust targetrun: rustup target add ${{ matrix.target }}- name: Install dependencies (ubuntu only)if: matrix.platform == 'ubuntu-20.04'# You can remove libayatana-appindicator3-dev if you don't use the system tray feature.run: |sudo apt-get updatesudo apt-get install -y libgtk-3-dev libwebkit2gtk-4.0-dev libayatana-appindicator3-dev librsvg2-dev- name: Setup nodeuses: actions/setup-node@v4with:node-version: 20- uses: pnpm/action-setup@v3with:version: latest# 获取 pnpm 缓存- name: Sync node version and setup cacheuses: actions/setup-node@v4with:node-version: 20cache: pnpm- name: install Rust stableuses: dtolnay/rust-toolchain@stable # Set this to dtolnay/rust-toolchain@nightlywith:# Those targets are only used on macos runners so it's in an `if` to slightly speed up windows and linux builds.targets: ${{ matrix.platform == 'macos-latest' && 'aarch64-apple-darwin,x86_64-apple-darwin' || '' }}- name: Rust cacheuses: swatinem/rust-cache@v2with:workspaces: './src-tauri -> target'- name: install frontend dependencies# If you don't have `beforeBuildCommand` configured you may want to build your frontend here too.run: pnpm install # change this to npm or pnpm depending on which one you use.- uses: tauri-apps/tauri-action@v0env:GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}with:tagName: ${{ github.ref_name }} # This only works if your workflow triggers on new tags.releaseName: 'PakePlus v__VERSION__' # tauri-action replaces \_\_VERSION\_\_ with the app version.releaseBody: 'This is a workflow to help you automate the publishing of your PakePlus project to GitHub Packages.'releaseDraft: falseprerelease: falsepublish: trueargs: ${{ matrix.args }}

http://www.yayakq.cn/news/431515/

相关文章:

  • 网站建设asp编程做景观素材有哪几个网站
  • 网站开发主要语言知名营销网站
  • 平顶山做网站公司怎么分析一个网站
  • 知名商业网站有哪些wordpress游戏代码仓鼠
  • 那种导航网站竞价什么意思
  • 网站建设专家证书互联网技术的概念
  • 网站不备案可以做淘宝联盟吗图片在线制作表情
  • 中国中国建设银行网站首页wordpress支付宝当面付插件
  • 慈溪网站建设公司外包做网站哪家好
  • 富源县住房和城乡建设局网站做网站是干嘛的
  • 网站开发联系方式国外做的比较好看的网站
  • 英语教学网站建设意见动物园网站建设的可行性分析
  • 做网站项目需要多少钱网站上传用什么软件做视频格式
  • 网站开发主流技术足球排名最新排名世界
  • 一个网站的seo优化有哪些舒城县建设局官方网站
  • 罗湖网站建设的公司渠道网络建设怎么写
  • 做网站 怎么连到数据库php做网站要多久
  • 90设计官方网站网络推广公司网站
  • 怎么做网站相关关键词营销推广哪家好
  • 杭州网站建设网站制作深圳建设银行网上银行登录
  • 做网站样本电销好做吗如何做游戏推广网站
  • 浙江网络公司网站建设wordpress 文章数
  • 湖北省建设安全管理站网站中小企业网站建设渠道
  • 四川网站设计成功柚米科技公司管理系统图
  • 热 网站正在建设中河北省建筑人才网
  • 四川网站建设服务用dw怎么做网站留言板
  • 信息产业部互联网网站管理工作细则网站内容与功能模块设计
  • 墙绘网站建设推广wordpress添加app文件
  • 知乎怎么做自己网站推广产品html5网页模板代码
  • 深圳正规做网站的公司自己建设购物网站