Skip to content

Commit

Permalink
Remove bit suffix renaming
Browse files Browse the repository at this point in the history
WebKit for Windows has dropped x86 support so stop renaming.
  • Loading branch information
donny-dont committed Aug 16, 2024
1 parent 9255a78 commit 59a00fc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 90 deletions.
39 changes: 0 additions & 39 deletions Package-Requirements.ps1

This file was deleted.

40 changes: 24 additions & 16 deletions Release-Requirements.ps1
Original file line number Diff line number Diff line change
@@ -1,31 +1,39 @@
<#
.Synopsis
Creates a WebKitRequirements release.
.Details
Calls the individual scripts for preparing a release.
Packages the requirements into a zip file for release.
.Parameter Triplet
The vcpkg triplet to use.
.Parameter Output
The filename to output to. Defaults to the form
`WebKitRequirements${Platform}.zip`.
#>

param(
[Parameter(Mandatory)]
[string]$triplet
[string]$triplet,
[Parameter()]
[string]$output
)

$ErrorActionPreference = 'Stop';

$tripletSplit = $triplet -split '-',3;
$platform = $tripletSplit[1];
if (!$ouput) {
$tripletSplit = $triplet -split '-',3;
$arch = $tripletSplit[0];
$platform = $tripletSplit[1];

if ($platform -eq 'windows') {
$command = ('Rename-WithBitSuffix.ps1 -triplet {0}' -f $triplet);
Write-Host $command;
Invoke-Expression -Command ('{0}/{1}' -f $PSScriptRoot,$command);
} else {
Write-Error ('Unknown triplet {0}' -f $triplet);
return;
if ($platform -eq 'windows') {
if ($arch -eq 'x64') {
$suffix = 'Win64';
} else {
$suffix = 'Win32';
}
} else {
Write-Error ('Unknown triplet {0}' -f $libraries);
}

$output = ('WebKitRequirements{0}.zip' -f $suffix);
}

$command = ('Package-Requirements.ps1 -triplet {0}' -f $triplet);
Write-Host $command;
Invoke-Expression -Command ('{0}/{1}' -f $PSScriptRoot,$command);
Write-Host ('Creating archive {0}' -f $output)
Compress-7Zip -ArchiveFileName $output -Path ('{0}/installed/{1}' -f $PSScriptRoot,$triplet)
35 changes: 0 additions & 35 deletions Rename-WithBitSuffix.ps1

This file was deleted.

0 comments on commit 59a00fc

Please sign in to comment.