Comments (3)
截图缺少关键信息,无法确定原因。
from wechat-web-devtools-linux.
留个言分享一下
1.不推荐自己弄编译器,兼容性太低了,老老实实用windows版本的wcc.exe wcsc.exe 就好了,我的项目10个有7个用开源的编译器全部报错,无法编译
2.我用的nixos,releases里面包理论来说只有AppImage版本我能用的(其他发行版的包者不做讨论),但是选择项目文件夹的时候会异常闪退.
3.理论来说,flatpak的包是兼容性最高的,但是并没有维护,我不推崇flatpak,因为可能包是真的大,但是他的兼容性和发行版维护量真的够全,毕竟这么多发行版.https://www.flatpak.org/setup/
- 分享给有需要的朋友, 用的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 "$@"
- 直接把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
- 项目都能运行,再次强调要啥自行车
from wechat-web-devtools-linux.
无响应
from wechat-web-devtools-linux.
Related Issues (20)
- 打开项目后,弹窗提示:couldn't start client skyline style server HOT 1
- aur 编译问题 HOT 1
- 部分中文显示为方块 HOT 4
- [已启用] 基于CPP的Linux原生编译器 HOT 5
- iOS真机调试一直是白屏,开发者工具里Wxml里是空白的 HOT 2
- 华为银河麒麟系统,linux的arm64架构下构筑失败 HOT 1
- ubuntu 22.04 有bug
- 赞赏 backup
- useExtendedLib (weui) 无法使用 HOT 3
- [skyline] 此功能不可使用的一些说明 HOT 1
- 编译报错 HOT 2
- 编译问题,无法编译WXSS文件 HOT 11
- 报错了,但是windows的开发者工具打开同一个项目是没有报错的 HOT 4
- fedora38 界面乱码 HOT 5
- manjaro kde下安装报错 HOT 3
- 使用appImage打开后,控制台报错$gwx is not defined HOT 8
- WXML 文件编译错误 HOT 1
- $gwx 的函数错误 HOT 4
- 导入不了已有项目 HOT 7
- [Bug] 导入按钮第二次点击无效 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wechat-web-devtools-linux.