跨平台桌面端框架wails 修改版本号

不同于electron框架直接修改package.json,在wails框架中需要在wails.json中的productVersion字段修改

{
    
    
  "$schema": "https://wails.io/schemas/config.v2.json",
  "name": "focus-target",
  "outputfilename": "focus-target",
  "frontend:install": "npm install",
  "frontend:build": "npm run build",
  "frontend:dev:watcher": "npm run dev",
  "frontend:dev:serverUrl": "auto",
  "author": {
    
    
    "name": "xxx",
    "email": "[email protected]"
  },
  "info": {
    
    
    "productName": "focus-target",
    "productVersion": "1.1.4",
    "copyright": "@九段刀客"
  }
}

猜你喜欢

转载自blog.csdn.net/weixin_35958891/article/details/133158074