Skip to content

Commit

Permalink
Update build.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
emadadel4 committed Feb 17, 2025
1 parent 17b1b65 commit 92215fd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ try {
# Define file paths
$FilePaths = @{
"MainWindow" = Join-Path -Path $windows -ChildPath "MainWindow.xaml"
"taps" = Join-Path -Path $Controls -ChildPath "taps.xaml"
"tabs" = Join-Path -Path $Controls -ChildPath "tabs.xaml"
"menu" = Join-Path -Path $Controls -ChildPath "menu.xaml"
"catagory" = Join-Path -Path $Controls -ChildPath "catagory.xaml"
"search" = Join-Path -Path $Controls -ChildPath "search.xaml"
Expand All @@ -657,15 +657,15 @@ try {
try {
# Read content from files
$MainXamlContent = (Get-Content -Path $FilePaths["MainWindow"] -Raw) -replace "'", "''"
$AppXamlContent = Get-Content -Path $FilePaths["taps"] -Raw
$AppXamlContent = Get-Content -Path $FilePaths["tabs"] -Raw
$StyleXamlContent = Get-Content -Path $FilePaths["Style"] -Raw
$ColorsXamlContent = Get-Content -Path $FilePaths["Colors"] -Raw
$MenuXamlContent = Get-Content -Path $FilePaths["menu"] -Raw
$ButtonsXamlContent = Get-Content -Path $FilePaths["buttons"] -Raw
$CatagoryXamlContent = Get-Content -Path $FilePaths["catagory"] -Raw
$searchXamlContent = Get-Content -Path $FilePaths["search"] -Raw
# Replace placeholders with actual content
$MainXamlContent = $MainXamlContent -replace "{{Taps}}", $AppXamlContent
$MainXamlContent = $MainXamlContent -replace "{{Tabs}}", $AppXamlContent
$MainXamlContent = $MainXamlContent -replace "{{Style}}", $StyleXamlContent
$MainXamlContent = $MainXamlContent -replace "{{Colors}}", $ColorsXamlContent
$MainXamlContent = $MainXamlContent -replace "{{menu}}", $MenuXamlContent
Expand Down

0 comments on commit 92215fd

Please sign in to comment.