Skip to content

Commit

Permalink
Add content removal
Browse files Browse the repository at this point in the history
  • Loading branch information
davidmfinol committed Nov 7, 2023
1 parent 487b648 commit 6fbf924
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,23 @@ jobs:
run: |
Copy-Item "C:\Card-Game-Simulator.git\storebroker\Package.StoreAssociation.xml" -Destination ".\$env:UwpProjectDirectory\"
Copy-Item "C:\Card-Game-Simulator.git\storebroker\CardGameSimulator.vcxproj.user" -Destination ".\$env:UwpProjectDirectory\"
- name: Read contents from file
working-directory: C:/Card-Game-Simulator.git
shell: pwsh
id: read-contents
run: |
$content_to_remove = Get-Content -Path C:\Card-Game-Simulator.git\storebroker\to_remove.txt
Write-Output "::set-output name=content::$content_to_remove"
- name: Remove contents from another file
working-directory: C:/Card-Game-Simulator.git
shell: pwsh
env:
UwpProjectDirectory: build\WSAPlayer\WSAPlayer\Card Game Simulator
run: |
$content_to_remove = $env:content
(Get-Content -Path ".\$env:UwpProjectDirectory\Unity Data.vcxitems") | ForEach-Object {
$_ -replace $content_to_remove, ""
} | Set-Content -Path ".\$env:UwpProjectDirectory\Unity Data.vcxitems"
- name: Update the Package.appxmanifest
if: false
working-directory: C:/Card-Game-Simulator.git
Expand Down
8 changes: 8 additions & 0 deletions storebroker/to_remove.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<None Include="$(MSBuildThisFileDirectory)..\Il2CppOutputProject\Source\il2cppOutput\Symbols\il2cppFileRoot.txt">
<DeploymentContent>true</DeploymentContent>
<ExcludeFromResourceIndex>true</ExcludeFromResourceIndex>
</None>
<None Include="$(MSBuildThisFileDirectory)..\Il2CppOutputProject\Source\il2cppOutput\Symbols\LineNumberMappings.json">
<DeploymentContent>true</DeploymentContent>
<ExcludeFromResourceIndex>true</ExcludeFromResourceIndex>
</None>

0 comments on commit 6fbf924

Please sign in to comment.