Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 283bcbbc
authored
2025-12-18 11:59:50 +0800
by
Administrator
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增强编译发布脚本
1 parent
a242c47d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
6 deletions
ios_build_pre.sh
pub_ios.sh
ios_build_pre.sh
100644 → 100755
View file @
283bcbb
...
...
@@ -4,23 +4,28 @@ if [ -z "$1" ]; then
echo
'需要指定环境变量'
fi
base_root
=
'/Users/ethanlam/works/gitlab/flutter_pros/appframe.git/assets'
env
=
$1
base_root
=
'/Users/ethanlam/works/gitlab/flutter_pros/appframe.git'
cd
$base_root
if
[
! -z
"
$
1
"
]
;
then
if
[
! -z
"
$
env
"
]
;
then
# 首先下载同步最新的数据包
rm -f assets/dist.zip
cd
assets
if
[
"
$1
"
==
'dev'
]
;
then
wget https://bxe.obs.cn-north-4.myhuaweicloud.com/fronts/material/xehybrid/assets/basepkg/base-dev.zip
if
[
"
$env
"
==
'dev'
]
;
then
rm -f
$base_root
/assets/base-dev.zip
*
wget2 https://bxe.obs.cn-north-4.myhuaweicloud.com/fronts/material/xehybrid/assets/basepkg/base-dev.zip
cp -f base-dev.zip
$base_root
/assets/dist.zip
echo
'wget dev is done '
fi
if
[
"
$1
"
==
'pro'
]
;
then
wget https://bxe.obs.cn-north-4.myhuaweicloud.com/fronts/material/xehybrid/assets/basepkg/base-pro.zip
if
[
"
$env
"
==
'pro'
]
;
then
rm -f
$base_root
/assets/base-pro.zip
*
wget2 https://bxe.obs.cn-north-4.myhuaweicloud.com/fronts/material/xehybrid/assets/basepkg/base-pro.zip
cp -f base-pro.zip
$base_root
/assets/dist.zip
echo
'wget pro is done '
fi
fi
echo
'done '
pub_ios.sh
0 → 100755
View file @
283bcbb
# 编译发布前需要执行的操作
if
[
-z
"
$1
"
]
;
then
echo
'需要指定环境变量'
fi
env
=
$1
_rebuild_
=
$2
_ver
=
`
date +%y%m%d%H%M
`
base_root
=
'/Users/ethanlam/works/gitlab/flutter_pros/appframe.git'
cd
$base_root
if
[
! -z
"
$env
"
]
;
then
# 首先下载同步最新的数据包
rm -f assets/dist.zip
cd
assets
if
[
"
$env
"
==
'dev'
]
;
then
rm -f
$base_root
/assets/base-dev.zip
*
wget2 https://bxe.obs.cn-north-4.myhuaweicloud.com/fronts/material/xehybrid/assets/basepkg/base-dev.zip
cp -f base-dev.zip
$base_root
/assets/dist.zip
echo
'wget dev is done '
fi
if
[
"
$env
"
==
'pro'
]
;
then
rm -f
$base_root
/assets/base-pro.zip
*
wget2 https://bxe.obs.cn-north-4.myhuaweicloud.com/fronts/material/xehybrid/assets/basepkg/base-pro.zip
cp -f base-pro.zip
$base_root
/assets/dist.zip
echo
'wget pro is done '
fi
fi
cd
$base_root
if
[
! -z
"
$_rebuild_
"
]
;
then
flutter clean
flutter pub get
fi
cd
ios
#flutter build ios --build-number=$_ver
#--dart-define=env=$env
flutter build ipa --export-method ad-hoc --dart-define
'env='
$env
cd
$base_root
mkdir -p dist
cp -f build/ios/ipa/banxiaoer.ipa dist/
'banxiaoer_'
$env
'_'
$_ver
'.ipa'
echo
'build and publish package is done '
$env
Write
Preview
Styling with
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment