From 304a89729077826d49c70ebbd7fea0e91709ef96 Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Tue, 24 Sep 2024 10:44:23 -0400 Subject: [PATCH] actions: shuffle gam.exe after we download signed. --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2aec7dc46..c0fcd8d7a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -646,9 +646,6 @@ jobs: $gam user gam-win-signer@pdl.jaylee.us add drivefile localfile "$gam" parentid "$folder_id" $gam user gam-win-signer@pdl.jaylee.us update drivefile "$folder_id" newfilename "READYTOSIGN ${folder_number}" export signed_folder="SIGNED ${folder_number}" - # remove unsigned gam.exe so we can overwrite and we fail - # if we fail to get the signed gam.exe - rm -v -f "${gampath}/gam.exe" zero_results="gam-win-signer@pdl.jaylee.us,0" while true; do result_counts=$($gam user gam-win-signer print filelist query "name = '${signed_folder}' and '1Xz3hYq4Mfa_r6D8EcBZHLDtHDFurYSvp' in parents and mimeType = 'application/vnd.google-apps.folder'" countsonly) @@ -660,7 +657,10 @@ jobs: echo "no results, sleeping 10..." sleep 10 done - $gam user gam-win-signer print filelist query "name = '${signed_folder}' and '1Xz3hYq4Mfa_r6D8EcBZHLDtHDFurYSvp' in parents and mimeType = 'application/vnd.google-apps.folder'" id | $gam csv - gam user gam-win-signer@pdl.jaylee.us print filelist query "'~~id~~' in parents and name = 'gam.exe'" id | $gam csv - gam user gam-win-signer@pdl.jaylee.us get drivefile ~id targetfolder "$gampath" targetname "gam.exe" overwrite true acknowledgeabuse true + $gam user gam-win-signer print filelist query "name = '${signed_folder}' and '1Xz3hYq4Mfa_r6D8EcBZHLDtHDFurYSvp' in parents and mimeType = 'application/vnd.google-apps.folder'" id | $gam csv - gam user gam-win-signer@pdl.jaylee.us print filelist query "'~~id~~' in parents and name = 'gam.exe'" id | $gam csv - gam user gam-win-signer@pdl.jaylee.us get drivefile ~id targetfolder "$gampath" targetname "signed-gam.exe" overwrite true acknowledgeabuse true + # remove unsigned gam.exe and rename signed-gam.exe + rm -v -f "${gampath}/gam.exe" + mv -v -f "${gampath}/signed-gam.exe" "${gampath}/gam.exe" ls -l "/c/Program Files (x86)/" ls -l "/c/Program Files (x86)/Windows Kits/" ls -l "/c/Program Files (x86)/Windows Kits/10"