Commit Graph

4 Commits

Author SHA1 Message Date
J-Human
03b5bebb3c
[discord-game-sdk] use updated domain name (#20153)
* [discord-game-sdk] use updated domain name for copyright notice

* [discord-game-sdk] use new domain name for JSON data

* [discord-game-sdk] update version sha

* [discord-game-sdk] update JSON field and port version

* [discord-game-sdk] update versions

* [discord-game-sdk] update port git tree sha

* [discord-game-sdk] remove unneeded version increment

* [discord-game-sdk] remove the other commit sha

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
2021-09-17 08:03:41 -07:00
Billy O'Neal
b295670e4b
Bulk convert control files. (#19986)
```
function Convert-Control {
    Param($full)
    .\vcpkg.exe format-manifest $full
    $root = $full.Substring(0, $full.Length - 7) # CONTROL
    $new = $root + 'vcpkg.json'
    $content = Get-Content -Raw $new
    $asJson = ConvertFrom-Json $content -AsHashtable -Depth 100
    $oldVersion = $asJson['port-version']
    if ($null -eq $oldVersion) {
        $oldVersionFull = $asJson['version-string']
        Write-Host "Got version $oldVersionFull"
        $match = [System.Text.RegularExpressions.Regex]::Match($oldVersionFull, '^(.+)-(\d+)$')
        if ($match.Success -and -not [System.Text.RegularExpressions.Regex]::IsMatch($oldVersionFull, '^\d\d\d\d-\d\d-\d\d$')) {
            $newFullVersion = [string]$match.Groups[1].Value
            $oldVersion = [int]$match.Groups[2].Value
            Write-Host "newFullVersion $newFullVersion oldVersion $oldVersion"
            $newVersion = $oldVersion + 1
            $asJson['version-string'] = $newFullVersion
            Write-Host "Previous version for $full extracted from version field -- setting version-string $newFullVersion and port-version $newVersion"
        } else {
            Write-Host "No previous version for $full -- setting 1"
            $newVersion = 1
        }
    } else {
        $newVersion = [int]$oldVersion + 1
        Write-Host "New version for $full : $newVersion"
    }

    $asJson['port-version'] = $newVersion

    $content = ConvertTo-Json $asJson -Depth 100
    Set-Content -Path $new -Value $content
    .\vcpkg.exe format-manifest $new
}

Get-ChildItem ports\CONTROL -Recurse | Foreach-Object {
    Convert-Control $_.FullName
}

git commit -am "this message"
.\vcpkg.exe x-add-version -all
git commit -a --amend
```
2021-09-09 01:24:04 -07:00
Maki
0f161f9e12
[discord-game-sdk] Won't compile with certain compilers (#11728)
* [discord-game-sdk] Added required flag for compiling

* [discord-game-sdk] Added patch for fixing cstdint issue

* [discord-game-sdk] Bumped version for patch

* [discord-game-sdk] Formatting

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>

Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2020-06-11 22:09:27 -07:00
Charles Milette
411929e664
[discord-game-sdk] new port (#10763)
* [discord-game-sdk] new port

* [discord-game-sdk] Invert Supports field

* [discord-game-sdk] Fix Supports field

* [discord-game-sdk] Fix Supports field again

* [discord-game-sdk] Update find_library

* [discord-game-sdk] Rename LICENSE.md, remove include(vcpkg_common_functions)

* [discord-game-sdk] Fix Linux build, add usage file

* [discord-game-sdk] Add missing file(INSTALL)

* [discord-game-sdk] Update baseline and fix macOS build

* [discord-game-sdk] Specify C++ standard version

* [discord-game-sdk] Remove vcpkg_copy_pdbs

* [discord-game-sdk] Replace ToS text by link to online version
2020-05-06 11:01:30 -07:00