Git Product home page Git Product logo

Comments (3)

msojocs avatar msojocs commented on June 14, 2024

截图缺少关键信息,无法确定原因。

from wechat-web-devtools-linux.

jcleng avatar jcleng commented on June 14, 2024

留个言分享一下

1.不推荐自己弄编译器,兼容性太低了,老老实实用windows版本的wcc.exe  wcsc.exe 就好了,我的项目10个有7个用开源的编译器全部报错,无法编译
2.我用的nixos,releases里面包理论来说只有AppImage版本我能用的(其他发行版的包者不做讨论),但是选择项目文件夹的时候会异常闪退.
3.理论来说,flatpak的包是兼容性最高的,但是并没有维护,我不推崇flatpak,因为可能包是真的大,但是他的兼容性和发行版维护量真的够全,毕竟这么多发行版.https://www.flatpak.org/setup/

aQVr7.png

  • 分享给有需要的朋友, 用的flatpak打包wine的版本
1.注意几个点,wcc.exe  wcsc.exe是32位的,所以说用32位的wine,还有几个i386的兼容性包都安装上
2.sdk/extensions的运行时全部安装,这个是通用的,其他软件也会需要,只需要下载一次
3.有可能(我没有找到配置)不能直接配置binfmt直接执行exe,所以说对wcc.exe  wcsc.exe进行包装一下,就像这样(wcsc.exe备份用脚本包装一下)用wine去执行即可


#!/bin/sh
exec /app/bin/wine /app/bin/wechat-devtools/package.nw/node_modules/wcc-exec/wcsc.exe.bak "$@"

aQ24K.png

aQxgg.png

  • 直接把WeChat_Dev_Tools_v1.06.2207210-continuous_x86_64_wine下载进行打包
{
    "id": "org.jcleng.wechat_web_devtools_linux",
    "runtime": "org.freedesktop.Platform",
    "runtime-version": "21.08",
    "sdk": "org.freedesktop.Sdk/x86_64/21.08",
    "sdk-extensions": [
        "org.freedesktop.Sdk.Extension.node12",
        "org.freedesktop.Sdk.Compat.i386",
        "org.freedesktop.Sdk.Extension.toolchain-i386"
    ],
    "command": "run.sh",
    "finish-args": [
        "--share=ipc",
        "--socket=x11",
        "--socket=wayland",
        "--share=network",
        "--filesystem=host",
        "--allow=multiarch"
    ],
    "base": "org.winehq.Wine",
    "base-version": "stable-21.08",
    "add-extensions": {
        "org.freedesktop.Platform.Compat.i386": {
            "directory": "lib/i386-linux-gnu",
            "version": "21.08"
        }
    },
    "inherit-extensions": [
        "org.winehq.Wine.gecko",
        "org.winehq.Wine.mono",
        "org.winehq.Wine.DLLs"
    ],
    "modules": [
        {
            "name": "wechat-devtools",
            "buildsystem": "simple",
            "build-commands": [
                "ls",
                "mkdir -p /app/bin/wechat-devtools",
                "cp ./run.sh /app/bin/",
                "cp -r ./WeChat_Dev_Tools_v1.06.2207210-continuous_x86_64_wine/* /app/bin/wechat-devtools",
                "ls /app/bin/",
                "mkdir -p /app/share/applications/",
                "mkdir -p /app/share/icons/hicolor/scalable/apps/",
                "install -Dm644 wechat-devtools.desktop /app/share/applications/org.jcleng.wechat_web_devtools_linux.desktop",
                "install -Dm644 wechat-devtools.svg /app/share/icons/hicolor/scalable/apps/wechat-devtools.svg",
                "mkdir -p /app/bin/wechat-devtools/nwjs/code/package.nw",
                "cp -r /app/bin/wechat-devtools/package.nw/* /app/bin/wechat-devtools/nwjs/code/package.nw/",
                "echo --------",
                "ls /app/bin/"
            ],
            "sources": [
                {
                    "type": "dir",
                    "path": "./"
                }
            ]
        }
    ]
}
  • 打包出来的大小
flatpak build-bundle repo wechat_web_devtools_linux.flatpak org.jcleng.wechat_web_devtools_linux

# 打出来也不大
ls -lah ./wechat_web_devtools_linux.flatpak
# -rw-r--r-- 1 jcleng users 229M  8月 29 22:39 ./wechat_web_devtools_linux.flatpak
  • 就是安装之后很大(要啥自行车)
# ╰─$ flatpak info org.jcleng.wechat_web_devtools_linux
#           ID: org.jcleng.wechat_web_devtools_linux
#          Ref: app/org.jcleng.wechat_web_devtools_linux/x86_64/master
#         Arch: x86_64
#       Branch: master
#       Origin: leng-repo
#   Collection:
# Installation: user
#    Installed: 1.5 GB
#      Runtime: org.freedesktop.Platform/x86_64/21.08
#          Sdk: org.freedesktop.Sdk/x86_64/21.08

#       Commit: 5f86af715551d103ac9eadcb220e54d885309ed59f7590cacc4059537a89f3b9
#      Subject: Export org.jcleng.wechat_web_devtools_linux
#         Date: 2022-08-29 14:21:32 +0000

  • 项目都能运行,再次强调要啥自行车

aQWFB.png

from wechat-web-devtools-linux.

msojocs avatar msojocs commented on June 14, 2024

无响应

from wechat-web-devtools-linux.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.