@@ -25,7 +25,11 @@ main() {
25
25
set_defaults
26
26
check_git_version_and_commit
27
27
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
29
33
build_project
30
34
create_version_file
31
35
handle_compression
@@ -42,6 +46,7 @@ parse_args() {
42
46
--no-compress) COMPRESS_FLAG=" false" ; shift ;;
43
47
--enforce-tag) ENFORCE_TAG=" true" ; shift ;;
44
48
--skip-i18n) SKIP_I18N=" true" ; shift ;;
49
+ --lite) LITE_FLAG=" true" ; shift ;;
45
50
-h|--help) display_help; exit 0 ;;
46
51
* ) log_error " Unknown option: $1 " ; display_help; exit 1 ;;
47
52
esac
@@ -50,7 +55,7 @@ parse_args() {
50
55
51
56
# Display help message
52
57
display_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] "
54
59
echo " "
55
60
echo " Options (will overwrite environment setting):"
56
61
echo " --dev Build development version"
@@ -59,6 +64,7 @@ display_help() {
59
64
echo " --no-compress Skip compression"
60
65
echo " --enforce-tag Force git tag requirement for both dev and release builds"
61
66
echo " --skip-i18n Skip i18n build step"
67
+ echo " --lite Add -lite suffix to frontend archive name"
62
68
echo " "
63
69
echo " Environment variables:"
64
70
echo " OPENLIST_FRONTEND_BUILD_MODE=dev|release (default: dev)"
@@ -73,6 +79,7 @@ set_defaults() {
73
79
COMPRESS_FLAG=${COMPRESS_FLAG:- ${OPENLIST_FRONTEND_BUILD_COMPRESS:- false} }
74
80
ENFORCE_TAG=${ENFORCE_TAG:- ${OPENLIST_FRONTEND_BUILD_ENFORCE_TAG:- false} }
75
81
SKIP_I18N=${SKIP_I18N:- ${OPENLIST_FRONTEND_BUILD_SKIP_I18N:- false} }
82
+ LITE_FLAG=${LITE_FLAG:- false}
76
83
}
77
84
78
85
# Check git version and commit
0 commit comments