Skip to content

Commit

Permalink
Update Schema
Browse files Browse the repository at this point in the history
  • Loading branch information
krisdb2009 committed Mar 11, 2020
1 parent 3bb604f commit 7c053eb
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 12 deletions.
5 changes: 3 additions & 2 deletions SuperGrate.sln
Expand Up @@ -7,9 +7,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SuperGrate", "SuperGrate\Su
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SuperGrateProfileDelete", "SuperGrateProfileDelete\SuperGrateProfileDelete.csproj", "{600B0D09-F639-4603-A9A9-EA4132CCECA5}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{FA959F61-15FA-449E-AC3F-741A21AF4AC5}"
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{2F2CD8B1-FEED-4DA5-9345-B88847B72A31}"
ProjectSection(SolutionItems) = preProject
updates.json = updates.json
Updates\Updates.xml = Updates\Updates.xml
Updates\Updates.xsd = Updates\Updates.xsd
EndProjectSection
EndProject
Global
Expand Down
20 changes: 20 additions & 0 deletions Updates/Updates.xml
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<SuperGrate UpdaterVersion="0">
<Settings>
<Redirect RedirectURL="https://api.belowaverage.org/v1/SuperGrate/Updates/" UpdaterVersion="0" />
</Settings>
<UpdateChannels>
<Type Name="RELEASE" />
<Type Name="PRERELEASE" />
</UpdateChannels>
<Updates>
<Update
Version="1.1.1.1"
Date=""
BuildHash="9E95275A3B912AEB9992B0B82CA829C5EF102992"
Channel="PRERELEASE"
DownloadURL="https://github.com/belowaverage-org/SuperGrate/releases/download/1.2.0.0/SuperGrateX64.exe"
ReleaseURL="https://github.com/belowaverage-org/SuperGrate/releases/tag/1.3.0.0-prerelease.4"
/>
</Updates>
</SuperGrate>
56 changes: 56 additions & 0 deletions Updates/Updates.xsd
@@ -0,0 +1,56 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema
attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://tempuri.org/XMLSchema.xsd"
xmlns="http://tempuri.org/XMLSchema.xsd"
xmlns:mstns="http://tempuri.org/XMLSchema.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
<xs:element name="SuperGrate">
<xs:complexType>
<xs:sequence>
<xs:element name="Settings">
<xs:complexType>
<xs:sequence>
<xs:element name="Redirect">
<xs:complexType>
<xs:attribute name="RedirectURL" type="xs:string" use="required" />
<xs:attribute name="UpdaterVersion" type="xs:unsignedByte" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="UpdateChannels">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="Type">
<xs:complexType>
<xs:attribute name="Name" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Updates">
<xs:complexType>
<xs:sequence>
<xs:element name="Update">
<xs:complexType>
<xs:attribute name="Version" type="xs:string" use="required" />
<xs:attribute name="Date" type="xs:string" use="required" />
<xs:attribute name="BuildHash" type="xs:string" use="required" />
<xs:attribute name="Channel" type="xs:string" use="required" />
<xs:attribute name="DownloadURL" type="xs:string" use="required" />
<xs:attribute name="ReleaseURL" type="xs:string" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="UpdaterVersion" type="xs:unsignedByte" use="required" />
</xs:complexType>
</xs:element>
</xs:schema>
8 changes: 8 additions & 0 deletions XMLSchema1.xsd
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<xs:schema targetNamespace="http://tempuri.org/XMLSchema.xsd"
elementFormDefault="qualified"
xmlns="http://tempuri.org/XMLSchema.xsd"
xmlns:mstns="http://tempuri.org/XMLSchema.xsd"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
>
</xs:schema>
10 changes: 0 additions & 10 deletions updates.json

This file was deleted.

0 comments on commit 7c053eb

Please sign in to comment.