From 1684538203752e79fbd491dcc3b33da8a6b27743 Mon Sep 17 00:00:00 2001 From: sekaiacg Date: Fri, 3 Mar 2023 21:03:16 +0800 Subject: [PATCH] CI: Clear unnecessary time information Signed-off-by: sekaiacg --- .github/workflows/build-erofs-utils.yml | 2 +- build.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-erofs-utils.yml b/.github/workflows/build-erofs-utils.yml index af3926ca..3ca2535b 100644 --- a/.github/workflows/build-erofs-utils.yml +++ b/.github/workflows/build-erofs-utils.yml @@ -26,7 +26,7 @@ jobs: - name: Version if: github.event.inputs.release == 'true' && github.event.inputs.release != 'false' && !cancelled() run: | - ARTIFACT_DIR=$(ls); for name in ${ARTIFACT_DIR}; do zip -9 -jy "${name}.zip" ${name}/*.erofs > /dev/null 2>&1; done; + ARTIFACT_DIR=$(ls); for name in ${ARTIFACT_DIR}; do touch -c -d "2009-01-01 00:00:00" ${name}/*; zip -9 -jy "${name}.zip" ${name}/*.erofs > /dev/null 2>&1; done; ls -lahR - name: Upload release diff --git a/build.sh b/build.sh index f8882be5..b89664e6 100755 --- a/build.sh +++ b/build.sh @@ -74,6 +74,7 @@ build() echo "复制文件中..." [[ ! -d "$TARGET_DIR_PATH" ]] && mkdir -p ${TARGET_DIR_PATH} cp -af $BUILD/*.erofs ${TARGET_DIR_PATH} + touch -c -d "2009-01-01 00:00:00" ${TARGET_DIR_PATH}/* echo "编译成功: ${TARGE_DIR_NAME}" else echo "error"