-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1652 from tgstation/dev [TGSDeploy]
v5.16.0 Release
- Loading branch information
Showing
16 changed files
with
77 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<!-- This is in it's own file to help incremental building, changing it causes a complete rebuild of the web panel --> | ||
<TgsControlPanelVersion>4.24.0</TgsControlPanelVersion> | ||
<TgsControlPanelVersion>4.25.2</TgsControlPanelVersion> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
build/package/winget/Tgstation.Server.Host.Service.Wix.Bundle/Bundle.wxs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,21 @@ | |
<PackageReleaseNotes>$(TGS_NUGET_RELEASE_NOTES_COMMON)</PackageReleaseNotes> | ||
</PropertyGroup> | ||
|
||
<!-- This is here because I know we have node as a build dep so this just works --> | ||
<Target Name="IconGeneration" BeforeTargets="ResolveAssemblyReferences" Inputs="../../build/logo.svg" Outputs="../../artifacts/tgs.ico;../../artifacts/tgs.png"> | ||
<Message Text="Restoring yarn packages..." Importance="high" /> | ||
<Exec Command="npx --yes yarn add [email protected] [email protected]" /> | ||
<Message Text="Generating icons from SVG..." Importance="high" /> | ||
<Exec Command="node ./build_logo.js" /> | ||
</Target> | ||
|
||
<Target Name="IconClean" AfterTargets="Clean"> | ||
<Message Text="Cleaning icons..." Importance="high" /> | ||
<Delete Files="../../artifacts/tgs.ico;../../artifacts/tgs.png" /> | ||
</Target> | ||
|
||
<Target Name="IconNodeCleanup" AfterTargets="IconGeneration;IconClean"> | ||
<RemoveDir Directories="node_modules" /> | ||
<Delete Files="package.json;yarn.lock" /> | ||
</Target> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
// Prereq packages: [email protected] [email protected] | ||
// Usage: node ./build_logo.js | ||
// Generates ../../artifacts/tgs.ico and ../../artifacts/tgs.ico | ||
|
||
const svg_to_img = require("svg-to-ico"); | ||
const svg2img = require('svg2img'); | ||
const fs = require('fs'); | ||
const { exit } = require("process"); | ||
if (!fs.existsSync("../../artifacts")) { | ||
fs.mkdirSync("../../artifacts",'0777', true); | ||
} | ||
|
||
svg_to_img({ | ||
input_name: "../../build/logo.svg", | ||
output_name: "../../artifacts/tgs.ico", | ||
sizes: [ 160 ] | ||
}).then(() => { | ||
// this package sucks, path separators are fucked | ||
svg2img( | ||
"../../build/logo.svg", | ||
{ | ||
resvg: { | ||
fitTo: { | ||
mode: 'width', // or height | ||
value: 64, | ||
} | ||
} | ||
}, | ||
function(error, buffer) { | ||
if(error) { | ||
console.error(`PNG conversion failed: ${error}`); | ||
exit(2); | ||
} | ||
|
||
fs.writeFileSync("../../artifacts/tgs.png", buffer); | ||
}); | ||
}).catch((error) => { | ||
console.error(`ICO conversion failed: ${error}`); | ||
exit(1); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters