From 0d264af03d85311a2e203696e0e8eb98f8074001 Mon Sep 17 00:00:00 2001 From: "Jon Thysell (JAUNTY)" Date: Thu, 15 Feb 2024 11:00:18 -0800 Subject: [PATCH] Remove PFX files from repo --- .github/workflows/template-buildexample.yml | 23 +++++++++++++++++- example/windows/example/example.vcxproj | 3 --- .../windows/example/example_TemporaryKey.pfx | Bin 2536 -> 0 bytes .../windows/examplenuget/examplenuget.vcxproj | 3 --- .../examplenuget_TemporaryKey.pfx | Bin 2536 -> 0 bytes 5 files changed, 22 insertions(+), 7 deletions(-) delete mode 100644 example/windows/example/example_TemporaryKey.pfx delete mode 100644 examplenuget/windows/examplenuget/examplenuget_TemporaryKey.pfx diff --git a/.github/workflows/template-buildexample.yml b/.github/workflows/template-buildexample.yml index 95a4e21..d0775aa 100644 --- a/.github/workflows/template-buildexample.yml +++ b/.github/workflows/template-buildexample.yml @@ -11,6 +11,10 @@ on: required: false default: 'example' type: string + useBuildCertificate: + required: false + default: false + type: boolean jobs: build-example: @@ -25,8 +29,25 @@ jobs: - name: build TS run: yarn build + - name: Decode the pfx + if: ${{ inputs.useBuildCertificate }} + run: | + $PfxBytes = [System.Convert]::FromBase64String("${{ secrets.EXAMPES_BASE64_ENCODED_PFX }}") + $PfxPath = [System.IO.Path]::GetFullPath("${{github.workspace}}\GitHubActionsWorkflow.pfx") + Write-Host $PfxPath + [System.IO.File]::WriteAllBytes("$PfxPath", $PfxBytes) + working-directory: ${{ inputs.exampleName }} + - name: yarn windows - run: yarn windows --no-launch --no-deploy --no-packager --logging + run: yarn windows --no-launch --no-deploy --no-packager --logging ${{ inputs.useBuildCertificate && '--msbuildprops PackageCertificateKeyFile=${{github.workspace}}\GitHubActionsWorkflow.pfx' || '' }} + working-directory: ${{ inputs.exampleName }} + + - name: Remove the pfx + if: ${{ inputs.useBuildCertificate }} + run: | + $certificatePath = [System.IO.Path]::GetFullPath("${{github.workspace}}\GitHubActionsWorkflow.pfx") + Write-Host $certificatePath + Remove-Item -path $certificatePath working-directory: ${{ inputs.exampleName }} - name: test app diff --git a/example/windows/example/example.vcxproj b/example/windows/example/example.vcxproj index d5be499..dec43d2 100644 --- a/example/windows/example/example.vcxproj +++ b/example/windows/example/example.vcxproj @@ -14,8 +14,6 @@ true Windows Store 10.0 - example_TemporaryKey.pfx - 75F170D34994859553AF5C50C18A9AECDD312B27 $([MSBuild]::GetDirectoryNameOfFileAbove($(SolutionDir), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\ @@ -152,7 +150,6 @@ - diff --git a/example/windows/example/example_TemporaryKey.pfx b/example/windows/example/example_TemporaryKey.pfx deleted file mode 100644 index bfe34cabbf7d74fac1bc82c5e7368c2ee9b19231..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2536 zcmZXUc|6qn8pnUL7-sCtWX%%UX~@VROJrX!sdFq@vS%r>W*cLM6xr99I@!g@nw>J) zvt%nHWRD2h>CQQ?d(U~@*Zt%9KHty#*}ngL9~2h800u!&SU3>|m&EJg_ZdO7AR-o? z1jWLiP;ndzOLO!;A)0ScEX^_%f2GPsbps5h9fD$^lhs*UBO|g^Ar`|H>5mwi%G@t-OrYIC~zoz}Fnioz+ z^!gmECm$5hU2=sCvkEnz`3;{(&v~GG%~q@8?!NiZ=}Ht5%@2IwNzOZkdKr)cG~yD< z+cuC-KH^N`5TiKDmiCo|4y)pv?;*05F+DR*c?ZMq$1bq>4pbT#Dt5)U^090uuSqV1 z7w@YCAWK=xD~a!{Mk;(9qGyN9JX#53E;$nRAtcyFClA@Vt+saKXz=&MSM_8GT!Vj; zImivd6C8`~lfVoY&^C}8)u&x_eFrnvtyI~cZ?Pcp#Oc@gXi{f>6VluA?K2sM1vHUS zK2!1`NoDQ4meuT=!Hs4FJ|XcHs;cCg3GJc8u{fX@G|g(=z%%WJ_D~;!CpH)z0*3PxHaA@Kcu0jrloVNaN3lRATpK9saeVKZxQw zt--SI^TVupvn%f7FPGu)m#jlqKgzf&(`R#ib#*{`Y3&d~MRs=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Euh=1fP4#6p!E(6d_^C?UZu@_9ym-3>Ym!#A!M`&@9i4 zWe0l^T1?>{D+$U*jYM#AJbAvQ%y_l&;vsTx%9!qIq-e8F-lN?P@2!w36L7bli!{f% zjJFEkO{~?P()RcHmFPJQw%oMIZ)_^9k=Vh(aLUDf1k$$ubNgz@3o%92t&sg@m-J{8 z4+1+yNVTVZ)2LxNp>$nC&&q9iqcnO?m~Sq0O6rs~kV9D=oQ`!o zxxs-UsUw)DhCKa75x<7!HP9ET7KY~DybtUjlQ(D9a2Aiyirw)O7YSY;>@+C4+uu16 ze4VZy)78n%7~pqL^aIuJk$tv|6bYSF!m{}LfmFD_(wO}Zc0RexqqsC*i6yk$ zJI%?`25?WC`zXfWu3u=iRILIo8YjT9KC5T=EiE@%lRR9$Ag<5r*-TPY)A%V#SRoH@ za((A8O(e3Gj1T3<3Q4UvSnt1R7x{jhU6Rzx@MbZS@xdNy&WS#JXZ;6@!wkLv$v-E2 zHz*QeME?_66yB;9D8f4~?|7<>aFIWR^G zv~QkyLDagS`CxraSKV49GV;oH4r9J*U{}cRMX5Gp6*s~>Fs3t+4Jop2by`7*t(hKd zcNkvN8*mmsGej*NJSMnQ^plr$rngT1W>dv8Yw0SmWindows Store 10.0 true - examplenuget_TemporaryKey.pfx - CA08428B1920E77BE093E559694FE56031D6E5E9 $([MSBuild]::GetDirectoryNameOfFileAbove($(SolutionDir), 'node_modules\react-native-windows\package.json'))\node_modules\react-native-windows\ @@ -152,7 +150,6 @@ - diff --git a/examplenuget/windows/examplenuget/examplenuget_TemporaryKey.pfx b/examplenuget/windows/examplenuget/examplenuget_TemporaryKey.pfx deleted file mode 100644 index 93b3ca614f46346102434e290e8472144201c7d8..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2536 zcmZXUc|6qn8pnULm@%Q4Cdo3^5!EolSVz&=mn@C3gvnA3kt~tjVBE4R(>)H7Jvp}M zSjv(mF-0j`c4I49lJ$i9JLh%pxv%@We>~sk^Sqz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