Skip to content

tauri v2 migration #63

Description

@Coordinate-Cat

古すぎバカ

Activity

  1. Coordinate-Cat commented on Jan 11, 2025

    @Coordinate-Cat
    CollaboratorAuthor

    v2に上げよう

  2. Coordinate-Cat commented on Jan 26, 2025

    @Coordinate-Cat
    CollaboratorAuthor
  3. Coordinate-Cat commented on Jan 26, 2025

    @Coordinate-Cat
    CollaboratorAuthor

    allowlistはsrc-tauri/capabilitiesに移管されるらしい。
    npm run tauri migrateで勝手に生成されるのは確認したが、
    tauri.conf.jsonのwarningを解決することができていない。

    マイグレーションに伴って、プロジェクト内でエラーが出ている場合、適宜依存関係などアップデートをしパスする。
    小手先で試した時にrust周りの依存関係でエラーが出ているのを確認している。

    tauri.conf.json

    {
      "build": {
        "beforeDevCommand": "npm run dev",
        "beforeBuildCommand": "npm run build",
        "devPath": "http://localhost:1420",
        "distDir": "../dist"
      },
      "package": {
        "productName": "Flanker",
        "version": "0.0.0"
      },
      "tauri": {
        "macOSPrivateApi": true,
        "allowlist": {
          "all": false,
          "http": {
            "all": true
          },
          "fs": {
            "all": true,
            "scope": ["$HOME/.config/flk/**"]
          },
          "path": {
            "all": true
          },
          "os": {
            "all": true
          },
          "shell": {
            "all": false,
            "open": true
          },
          "window": {
            "all": false,
            "close": true,
            "hide": true,
            "show": true,
            "maximize": true,
            "minimize": true,
            "unmaximize": true,
            "unminimize": true,
            "startDragging": true,
            "setAlwaysOnTop": true
          },
          "clipboard": {
            "all": true,
            "writeText": true,
            "readText": true
          },
          "protocol": {
            "asset": true,
            "assetScope": [
              "$HOME/.config/flk/images",
              "$HOME/.config/flk/images/*",
              "$HOME/.config/flk/fonts",
              "$HOME/.config/flk/fonts/*"
            ]
          },
          "globalShortcut": {
            "all": true
          }
        },
        "windows": [
          {
            "decorations": false,
            "transparent": true,
            "title": "Flanker",
            "width": 1500,
            "height": 1000,
            "minWidth": 768,
            "minHeight": 76,
            "hiddenTitle": true,
            "titleBarStyle": "Overlay",
            "resizable": true,
            "fullscreen": true,
            "fileDropEnabled": false
          }
        ],
        "security": {
          "csp": "default-src 'self'; img-src * asset: https://asset.localhost blob: date:; script-src 'self'; style-src 'self'; object-src 'none';"
        },
        "bundle": {
          "active": true,
          "targets": "all",
          "identifier": "com.flanker.app",
          "icon": [
            "icons/32x32.png",
            "icons/128x128.png",
            "icons/128x128@2x.png",
            "icons/icon.icns",
            "icons/icon.ico"
          ]
        }
      }
    }
  4. Coordinate-Cat commented on Jan 26, 2025

    @Coordinate-Cat
    CollaboratorAuthor

    現時点で以下がlatest
    https://v2.tauri.app/release/tauri/v2.2.3/

  5. changed the title [-]tauri migration[/-] [+]tauri v2 migration[/+] on Jan 26, 2025
  6. Coordinate-Cat commented on Jan 26, 2025

    @Coordinate-Cat
    CollaboratorAuthor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions