Browse Source

ci(linux): fix git error by yarn [skip ci]

Baptiste Augrain 1 year ago
parent
commit
4f407ac513
2 changed files with 10 additions and 0 deletions
  1. 6 0
      package_linux_bin.sh
  2. 4 0
      package_linux_reh.sh

+ 6 - 0
package_linux_bin.sh

@@ -14,6 +14,12 @@ cd vscode || { echo "'vscode' dir not found"; exit 1; }
 export VSCODE_SKIP_NODE_VERSION_CHECK=1
 export VSCODE_SKIP_NODE_VERSION_CHECK=1
 export VSCODE_SYSROOT_PREFIX='-glibc-2.17'
 export VSCODE_SYSROOT_PREFIX='-glibc-2.17'
 
 
+pwd
+ls -la *
+
+git clean -xfd .
+yarn cache clean
+
 for i in {1..5}; do # try 5 times
 for i in {1..5}; do # try 5 times
   yarn --cwd build --frozen-lockfile --check-files && break
   yarn --cwd build --frozen-lockfile --check-files && break
   if [[ $i == 3 ]]; then
   if [[ $i == 3 ]]; then

+ 4 - 0
package_linux_reh.sh

@@ -50,6 +50,10 @@ yarn gulp "vscode-reh-${VSCODE_PLATFORM}-${VSCODE_ARCH}-min-ci"
 
 
 cd ..
 cd ..
 
 
+APP_NAME_LC="$( echo "${APP_NAME}" | awk '{print tolower($0)}' )"
+
+mkdir -p assets
+
 echo "Building and moving REH"
 echo "Building and moving REH"
 cd "vscode-reh-${VSCODE_PLATFORM}-${VSCODE_ARCH}"
 cd "vscode-reh-${VSCODE_PLATFORM}-${VSCODE_ARCH}"
 tar czf "../assets/${APP_NAME_LC}-reh-${VSCODE_PLATFORM}-${VSCODE_ARCH}-${RELEASE_VERSION}.tar.gz" .
 tar czf "../assets/${APP_NAME_LC}-reh-${VSCODE_PLATFORM}-${VSCODE_ARCH}-${RELEASE_VERSION}.tar.gz" .