-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
31 changed files
with
41 additions
and
13,356 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,6 @@ name: Build and Push Docker image | |
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- 'v*' | ||
paths: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
core/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
执行如下命令打包新版核心(以macOS 3.9.9为例): | ||
core-build.sh 3.9.9 /Applications/HBuilderX.app/Contents/HBuilderX/plugins | ||
第一个参数为HbuilderX版本号,第二个参数为HbuilderX的plugins文件夹路径 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/bin/bash | ||
core_version=$1 | ||
plugins_root=$2 | ||
current_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null 2>&1 && pwd)" | ||
parent_dir="$(dirname "$current_dir")" | ||
core_dir="$parent_dir/core" | ||
if [ -d "$core_dir" ]; then | ||
rm -rf "$core_dir" | ||
fi | ||
mkdir "$core_dir" | ||
cp -r $current_dir/node $core_dir/ | ||
unzip "$current_dir/npm.zip" -d "$core_dir" | ||
cp -r $plugins_root/node_modules/package.json $core_dir/ | ||
cp -r $plugins_root/node_modules/package-lock.json $core_dir/ | ||
cp -r $plugins_root/about $core_dir/ | ||
cp -r $plugins_root/compile-dart-sass $core_dir/ | ||
mkdir $core_dir/uniapp-cli-vite | ||
cp $plugins_root/uniapp-cli-vite/index.js $core_dir/uniapp-cli-vite/ | ||
cp $plugins_root/uniapp-cli-vite/vite.config.js $core_dir/uniapp-cli-vite/ | ||
cp $plugins_root/uniapp-cli-vite/package.json $core_dir/uniapp-cli-vite/ | ||
cp $plugins_root/uniapp-cli-vite/package.nls.json $core_dir/uniapp-cli-vite/ | ||
cp $plugins_root/uniapp-cli-vite/package.nls.zh_CN.json $core_dir/uniapp-cli-vite/ | ||
cp $plugins_root/uniapp-cli-vite/yarn.lock $core_dir/uniapp-cli-vite/ | ||
new_dependency='"@esbuild/linux-x64": "0.17.12"' | ||
jq '.devDependencies |= with_entries(select(.key != "@esbuild/darwin-arm64" and .key != "@esbuild/darwin-x64" and .key != "fsevents"))' $core_dir/uniapp-cli-vite/package.json | jq ".devDependencies += {$new_dependency}" > $core_dir/uniapp-cli-vite/temp.json && mv $core_dir/uniapp-cli-vite/temp.json $core_dir/uniapp-cli-vite/package.json | ||
zip -r "$parent_dir/core-3.9.9.zip" "$core_dir" |
File renamed without changes.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.