From 75917304ac43e67281c26af66ec363c1fe78e9eb Mon Sep 17 00:00:00 2001 From: yuk7 Date: Sun, 17 Nov 2019 10:22:42 +0900 Subject: [PATCH] Change executable file name --- .travis.yml | 8 +++++--- env.sh | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index c22892b..c9782e8 100755 --- a/.travis.yml +++ b/.travis.yml @@ -32,10 +32,11 @@ script: - cd .. - - mkdir out -- mv -f ${LNCR_FN} ./out/ +- mkdir dist +- mv -f ${LNCR_FN} ./out/${LNCR_ZIPFN} - mv -f rootfs.tar.gz ./out/ - cd out -- zip CentOS.zip * +- zip ../dist/CentOS${OS_VER}.zip * - cd .. notifications: email: false @@ -43,7 +44,8 @@ deploy: provider: releases api_key: secure: c3go1osy/T3T7qhZvQQnxR09ck5anmwGVQyQtrlx9B6QnQhLRF0NpV0CYt4PD6/4MUedCC0/EFmZpVogUyea/3F+F/j2fxsg4xUdm6gUNBKUH5wfdbHEW01JVfvwgtlZKFZmCrgNxS931yVM9yvPv02uPC4qjv2wP459wUbnEq5UkhOSaNd8rra1kaUnHdvqlJsBEKc7+lcElRuW5gFMknLXD2X3irXYr5+L2idVSmmApDwU9ufN5zAEUsh+4s3W7YZVxkrYuR2qZVHvA6jaFkKmdkO0giBaz9Tpz6UVErkWNtR6F3OWtjG3dj9dMOSIX4yjuugyDxhQsHZIbErg8TGYIIoW3tMydbgwmTOOCSKZoPSg07kByjiAQSlyVe9ISevUwyCU1TTcnQRF93/CMdDV7bnT8OAfFMkmTL/vqGNyijz5QhRVSswP8jfITx/L1jEXszEcB6hiTZu0y68tBy5ovW3o/V1Yhf03Ny941LG4AMkEuQytw5kALH8r/GKBy1HEbxSVvlaHb1ygwPh2AZoANXPGjvpBZ4gh3+95Tm0W2hMnPkbHtlXMQjfxVHabS96GB6l174aWxHD/u97bbL9AUUr2J2wx5LOoQf9Bf5mMRfPvHn8+JWgqLrO2D4LtOxNF2cGyip61uaMO36wyhbUyeFOMJEeGCNJv1wGVtK8= - file: out/CentOS.zip + file_glob: true + file: 'dist/*.{zip}' on: repo: yuk7/CentWSL tags: true diff --git a/env.sh b/env.sh index 4696b4f..3e1fc99 100644 --- a/env.sh +++ b/env.sh @@ -5,11 +5,13 @@ OS_VER="7" ROOTFS_VER="1907" ROOTFS_FN="CentOS-${OS_VER}-${ARCH}-GenericCloud-${ROOTFS_VER}.raw" ROOTFS_TGZ="${ROOTFS_FN}.tar.gz" -ROOTFS_URL="http://cloud.centos.org/centos/7/images/${ROOTFS_TGZ}" +ROOTFS_URL="http://cloud.centos.org/centos/${OS_VER}/images/${ROOTFS_TGZ}" LNCR_BLD="19111602" LNCR_ZIP="icons.zip" -LNCR_FN="CentOS.exe" +LNCR_NAME="CentOS" +LNCR_FN=${LNCR_NAME}.exe +LNCR_ZIPFN=${LNCR_NAME}${OS_VER}.exe LNCR_URL="https://github.com/yuk7/wsldl/releases/download/${LNCR_BLD}/${LNCR_ZIP}"