mirror of
https://github.com/msojocs/wechat-web-devtools-linux.git
synced 2025-07-07 00:02:14 +08:00
fix: actions for submodule
This commit is contained in:
parent
fbb16cd24b
commit
2a4ba5c9e7
7
.github/workflows/flatpak-verify.yml
vendored
7
.github/workflows/flatpak-verify.yml
vendored
@ -29,10 +29,13 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Test
|
with:
|
||||||
|
submodules: 'recursive'
|
||||||
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
|
yum install -y p7zip p7zip-plugins nodejs
|
||||||
|
cd compiler && npm install
|
||||||
cat /etc/issue
|
cat /etc/issue
|
||||||
yum install -y p7zip p7zip-plugins
|
|
||||||
7z
|
7z
|
||||||
# Docker is required by the docker/setup-qemu-action which enables emulation
|
# Docker is required by the docker/setup-qemu-action which enables emulation
|
||||||
- name: Install deps
|
- name: Install deps
|
||||||
|
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@ -22,16 +22,20 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
node-version: [16.x]
|
||||||
ARCH: ['x86_64']
|
ARCH: ['x86_64']
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: 'recursive'
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
|
|
||||||
- name: Test
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
|
cd compiler && npm install
|
||||||
echo "$UID, $GID"
|
echo "$UID, $GID"
|
||||||
|
|
||||||
- name: Generate TAG
|
- name: Generate TAG
|
||||||
@ -109,6 +113,7 @@ jobs:
|
|||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
node-version: [16.x]
|
||||||
ARCH: ['x86_64']
|
ARCH: ['x86_64']
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
|
|
||||||
@ -117,8 +122,9 @@ jobs:
|
|||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: actions/download-artifact@v2
|
uses: actions/download-artifact@v2
|
||||||
|
|
||||||
- name: Test
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
|
cd compiler && npm install
|
||||||
echo "$UID, $GID"
|
echo "$UID, $GID"
|
||||||
|
|
||||||
- name: Generate TAG
|
- name: Generate TAG
|
||||||
@ -143,6 +149,9 @@ jobs:
|
|||||||
mkdir -p tmp/build
|
mkdir -p tmp/build
|
||||||
tools/build-prepare.sh
|
tools/build-prepare.sh
|
||||||
tools/build-release.sh ${{ matrix.ARCH }} ${{ steps.tag.outputs.tag }}
|
tools/build-release.sh ${{ matrix.ARCH }} ${{ steps.tag.outputs.tag }}
|
||||||
|
export NO_WINE=true
|
||||||
|
tools/build-prepare.sh
|
||||||
|
tools/build-release.sh ${{ matrix.ARCH }} ${{ steps.tag.outputs.tag }}
|
||||||
|
|
||||||
- name: View Directory
|
- name: View Directory
|
||||||
run: |
|
run: |
|
||||||
@ -224,6 +233,8 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: 'recursive'
|
||||||
- name: Use Node.js ${{ matrix.node-version }}
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
uses: actions/setup-node@v2
|
uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
@ -232,6 +243,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Prepare
|
- name: Prepare
|
||||||
run: |
|
run: |
|
||||||
|
cd compiler && npm install
|
||||||
npm install node-gyp nw-gyp npm -g
|
npm install node-gyp nw-gyp npm -g
|
||||||
node-gyp install
|
node-gyp install
|
||||||
cat /etc/passwd
|
cat /etc/passwd
|
||||||
@ -291,19 +303,26 @@ jobs:
|
|||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
|
node-version: [16.x]
|
||||||
ARCH: ['x86_64']
|
ARCH: ['x86_64']
|
||||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
submodules: 'recursive'
|
||||||
- name: Install Snapcraft
|
- name: Install Snapcraft
|
||||||
uses: samuelmeuli/action-snapcraft@v1
|
uses: samuelmeuli/action-snapcraft@v1
|
||||||
with:
|
with:
|
||||||
use_lxd: true
|
use_lxd: true
|
||||||
|
|
||||||
|
- name: Prepare
|
||||||
|
run: |
|
||||||
|
cd compiler && npm install
|
||||||
|
|
||||||
# You can now run Snapcraft shell commands
|
# You can now run Snapcraft shell commands
|
||||||
- name: Build snap
|
- name: Build snap
|
||||||
run: sg lxd -c 'snapcraft --use-lxd'
|
run: sg lxd -c 'snapcraft --use-lxd'
|
||||||
|
|
||||||
- name: move file
|
- name: move file
|
||||||
run: |
|
run: |
|
||||||
|
2
compiler
2
compiler
@ -1 +1 @@
|
|||||||
Subproject commit dbc6115f02446ea7ae4b9f62c89b1072b7acf433
|
Subproject commit 0224d8b102f5f9103f1023a6fd68b97fe962b4f2
|
@ -47,21 +47,10 @@ if [[ "$INPUT_VERSION" != "$DEVTOOLS_VERSION" ]];then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for type in wine no_wine; do
|
# 构建压缩包
|
||||||
notice "当前构建类型: $type";
|
notice "BUILD Simple Package"
|
||||||
if [[ $type == 'no_wine' ]];then
|
"$root_dir/tools/build-tar.sh"
|
||||||
notice "no wine handle"
|
|
||||||
export NO_WINE=true
|
|
||||||
"$root_dir/tools/fix-core.sh"
|
|
||||||
"$root_dir/tools/fix-other.sh"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# 构建压缩包
|
# 构建AppImage
|
||||||
notice "BUILD Simple Package"
|
notice "BUILD AppImage"
|
||||||
"$root_dir/tools/build-tar.sh"
|
"$root_dir/tools/build-appimage.sh"
|
||||||
|
|
||||||
# 构建AppImage
|
|
||||||
notice "BUILD AppImage"
|
|
||||||
"$root_dir/tools/build-appimage.sh"
|
|
||||||
|
|
||||||
done
|
|
||||||
|
@ -14,29 +14,18 @@ sed -i 's#module.exports = createWebviewManager;#module.exports = createWebviewM
|
|||||||
|
|
||||||
# 修复:可视化用的wcc,wcsc
|
# 修复:可视化用的wcc,wcsc
|
||||||
echo "fix: wcc,wcsc"
|
echo "fix: wcc,wcsc"
|
||||||
if [[ ! -d "$tmp_dir/node_modules" ]];then
|
|
||||||
mkdir -p "$tmp_dir/node_modules"
|
|
||||||
fi
|
|
||||||
cd $tmp_dir && npm install miniprogram-compiler
|
|
||||||
# wcc wcsc
|
# wcc wcsc
|
||||||
# 可视化编译
|
# 可视化编译
|
||||||
(cd "${package_dir}/node_modules/" \
|
(cd "${package_dir}/node_modules/" \
|
||||||
&& rm -rf wcc wcsc \
|
&& rm -rf wcc \
|
||||||
&& mkdir -p "wcc/bin/linux" \
|
&& cp -rL "${srcdir}/compiler/wcc_node" "wcc"
|
||||||
&& cp -r "${tmp_dir}/node_modules/miniprogram-compiler/bin/linux/wcc" "wcc/bin/linux/wcc" \
|
|
||||||
&& cp -r "${tmp_dir}/node_modules/miniprogram-compiler/bin/linux/wcsc" "wcc/bin/linux/wcsc" \
|
|
||||||
&& chmod 0755 "wcc/bin/linux/wcc" "wcc/bin/linux/wcsc" \
|
|
||||||
&& cp -r "${srcdir}/compiler/wcc_node"/* "wcc"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# 预览编译,设置NO_WINE=true环境变量生效
|
# 预览编译,设置NO_WINE=true环境变量生效
|
||||||
# 如果是mac执行wcc,否则wcc.exe
|
# 如果是mac执行wcc,否则wcc.exe
|
||||||
if [[ $NO_WINE == 'true' ]];then
|
if [[ $NO_WINE == 'true' ]];then
|
||||||
\cp -rf "${srcdir}/compiler/generatemd5.js" "${package_dir}/js/vendor/generatemd5.js"
|
\cp -rf "${srcdir}/compiler/generatemd5.js" "${package_dir}/js/vendor/generatemd5.js"
|
||||||
\cp -rf "${srcdir}/compiler/nodejs/wcc" "${package_dir}/js/vendor/wcc"
|
\cp "${srcdir}/compiler/nodejs"/* "${package_dir}/js/vendor"
|
||||||
\cp -rf "${srcdir}/compiler/nodejs/wcsc" "${package_dir}/js/vendor/wcsc"
|
|
||||||
\cp -rf "${tmp_dir}/node_modules/miniprogram-compiler/bin/linux/wcc" "${package_dir}/js/vendor/wcc.bin"
|
|
||||||
\cp -rf "${tmp_dir}/node_modules/miniprogram-compiler/bin/linux/wcsc" "${package_dir}/js/vendor/wcsc.bin"
|
|
||||||
cd "${package_dir}/js/vendor" && chmod 0755 wcc wcsc wcc.bin wcsc.bin
|
cd "${package_dir}/js/vendor" && chmod 0755 wcc wcsc wcc.bin wcsc.bin
|
||||||
node "${package_dir}/js/vendor/generatemd5.js"
|
node "${package_dir}/js/vendor/generatemd5.js"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user