@@ -25,7 +25,11 @@ main() {
2525 set_defaults
2626 check_git_version_and_commit
2727 update_package_version
28- archive_name=" openlist-frontend-dist-${version_tag} "
28+ if [[ " $LITE_FLAG " == " true" ]]; then
29+ archive_name=" openlist-frontend-dist-lite-${version_tag} "
30+ else
31+ archive_name=" openlist-frontend-dist-${version_tag} "
32+ fi
2933 build_project
3034 create_version_file
3135 handle_compression
@@ -42,6 +46,7 @@ parse_args() {
4246 --no-compress) COMPRESS_FLAG=" false" ; shift ;;
4347 --enforce-tag) ENFORCE_TAG=" true" ; shift ;;
4448 --skip-i18n) SKIP_I18N=" true" ; shift ;;
49+ --lite) LITE_FLAG=" true" ; shift ;;
4550 -h|--help) display_help; exit 0 ;;
4651 * ) log_error " Unknown option: $1 " ; display_help; exit 1 ;;
4752 esac
@@ -50,7 +55,7 @@ parse_args() {
5055
5156# Display help message
5257display_help () {
53- echo " Usage: $0 [--dev|--release] [--compress|--no-compress] [--enforce-tag] [--skip-i18n]"
58+ echo " Usage: $0 [--dev|--release] [--compress|--no-compress] [--enforce-tag] [--skip-i18n] [--lite] "
5459 echo " "
5560 echo " Options (will overwrite environment setting):"
5661 echo " --dev Build development version"
@@ -59,6 +64,7 @@ display_help() {
5964 echo " --no-compress Skip compression"
6065 echo " --enforce-tag Force git tag requirement for both dev and release builds"
6166 echo " --skip-i18n Skip i18n build step"
67+ echo " --lite Add -lite suffix to frontend archive name"
6268 echo " "
6369 echo " Environment variables:"
6470 echo " OPENLIST_FRONTEND_BUILD_MODE=dev|release (default: dev)"
@@ -73,6 +79,7 @@ set_defaults() {
7379 COMPRESS_FLAG=${COMPRESS_FLAG:- ${OPENLIST_FRONTEND_BUILD_COMPRESS:- false} }
7480 ENFORCE_TAG=${ENFORCE_TAG:- ${OPENLIST_FRONTEND_BUILD_ENFORCE_TAG:- false} }
7581 SKIP_I18N=${SKIP_I18N:- ${OPENLIST_FRONTEND_BUILD_SKIP_I18N:- false} }
82+ LITE_FLAG=${LITE_FLAG:- false}
7683}
7784
7885# Check git version and commit
0 commit comments