Skip to content

Commit a7a7ba1

Browse files
committed
zip keep soft link
1 parent aab7a07 commit a7a7ba1

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/onestep.sh

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ function compile_ios_platform
3535
echo "---do compile ios libs--------------------------------------"
3636
./main.sh compile -p ios -c build -l ${LIB_NAME}
3737
cd build/product/ios/universal
38-
zip -rq $DIST_DIR/${LIB_NAME}-ios-universal-${RELEASE_VERSION}.zip ./*
38+
zip -ryq $DIST_DIR/${LIB_NAME}-ios-universal-${RELEASE_VERSION}.zip ./*
3939

4040
cd ../universal-simulator
41-
zip -rq $DIST_DIR/${LIB_NAME}-ios-universal-simulator-${RELEASE_VERSION}.zip ./*
41+
zip -ryq $DIST_DIR/${LIB_NAME}-ios-universal-simulator-${RELEASE_VERSION}.zip ./*
4242
cd $ROOT_DIR
4343
}
4444

@@ -47,7 +47,7 @@ function compile_macos_platform
4747
echo "---do compile macos libs--------------------------------------"
4848
./main.sh compile -p macos -c build -l ${LIB_NAME}
4949
cd build/product/macos/universal
50-
zip -rq $DIST_DIR/${LIB_NAME}-macos-universal-${RELEASE_VERSION}.zip ./*
50+
zip -ryq $DIST_DIR/${LIB_NAME}-macos-universal-${RELEASE_VERSION}.zip ./*
5151
cd $ROOT_DIR
5252
}
5353

@@ -56,10 +56,10 @@ function compile_tvos_platform
5656
echo "---do compile tvos libs--------------------------------------"
5757
./main.sh compile -p tvos -c build -l ${LIB_NAME}
5858
cd build/product/tvos/universal
59-
zip -rq $DIST_DIR/${LIB_NAME}-tvos-universal-${RELEASE_VERSION}.zip ./*
59+
zip -ryq $DIST_DIR/${LIB_NAME}-tvos-universal-${RELEASE_VERSION}.zip ./*
6060

6161
cd ../universal-simulator
62-
zip -rq $DIST_DIR/${LIB_NAME}-tvos-universal-simulator-${RELEASE_VERSION}.zip ./*
62+
zip -ryq $DIST_DIR/${LIB_NAME}-tvos-universal-simulator-${RELEASE_VERSION}.zip ./*
6363
cd $ROOT_DIR
6464
}
6565

@@ -69,15 +69,15 @@ function compile_android_platform
6969
echo "---do compile android libs--------------------------------------"
7070
./main.sh compile -p android -c build -l ${LIB_NAME}
7171
cd build/product/android/universal
72-
zip -rq $DIST_DIR/${LIB_NAME}-android-universal-${RELEASE_VERSION}.zip ./*
72+
zip -ryq $DIST_DIR/${LIB_NAME}-android-universal-${RELEASE_VERSION}.zip ./*
7373
cd $ROOT_DIR
7474
}
7575

7676
function make_xcfmwk_bundle()
7777
{
7878
echo "---Zip apple xcframework--------------------------------------"
7979
cd build/product/xcframework
80-
zip -rq $DIST_DIR/${LIB_NAME}-apple-xcframework-${RELEASE_VERSION}.zip ./*
80+
zip -ryq $DIST_DIR/${LIB_NAME}-apple-xcframework-${RELEASE_VERSION}.zip ./*
8181
cd $ROOT_DIR
8282
}
8383

0 commit comments

Comments
 (0)