Skip to content

Commit

Permalink
fix(scr/cli/templates.hh): bring back win_logo
Browse files Browse the repository at this point in the history
  • Loading branch information
chicoxyzzy committed Nov 8, 2023
1 parent 0ecb2fa commit d4e9c83
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions api/CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ Key | Default Value | Description
:--- | :--- | :---
cmd | | The command to execute to spawn the “back-end” process.
icon | | The icon to use for identifying your app on Windows.
logo | | The icon to use for identifying your app on Windows.
pfx | | A relative path to the pfx file used for signing.

# `window`
Expand Down
2 changes: 1 addition & 1 deletion src/cli/cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2220,7 +2220,7 @@ int main (const int argc, const char* argv[]) {
}
// create .gitignore
if (!fs::exists(targetPath / ".gitignore")) {
SSC::writeFile(targetPath / ".gitignore", gDefaultGitignore);
writeFile(targetPath / ".gitignore", gDefaultGitignore);
log(".gitignore created in " + targetPath.string());
} else {
log(".gitignore already exists in " + targetPath.string());
Expand Down
13 changes: 8 additions & 5 deletions src/cli/templates.hh
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,7 @@ constexpr auto gWindowsAppManifest = R"XML(<?xml version="1.0" encoding="utf-8"?
<Properties>
<DisplayName>{{meta_title}}</DisplayName>
<Description>{{meta_description}}</Description>
<Logo>{{win_icon}}</Logo>
<Logo>{{win_logo}}</Logo>
<PublisherDisplayName>{{meta_maintainer}}</PublisherDisplayName>
</Properties>
Expand All @@ -545,12 +545,12 @@ constexpr auto gWindowsAppManifest = R"XML(<?xml version="1.0" encoding="utf-8"?
Executable="{{win_exe}}"
>
<uap:VisualElements DisplayName="{{meta_title}}"
Square150x150Logo="{{win_icon}}"
Square44x44Logo="{{win_icon}}"
Square150x150Logo="{{win_logo}}"
Square44x44Logo="{{win_logo}}"
Description="{{meta_description}}"
BackgroundColor="#20123A"
>
<uap:DefaultTile Wide310x150Logo="{{win_icon}}" />
<uap:DefaultTile Wide310x150Logo="{{win_logo}}" />
</uap:VisualElements>
<Extensions>
<uap3:Extension
Expand Down Expand Up @@ -1848,8 +1848,11 @@ headers = native-module1.hh
; The icon to use for identifying your app on Windows.
icon = "src/icon.png"
; The icon to use for identifying your app on Windows.
logo = "src/icons/icon.png"
; A relative path to the pfx file used for signing.
pfx = "certs/cert.pfx"
; pfx = "certs/cert.pfx"
; The signing information needed by the appx api.
; publisher = "CN=Beep Boop Corp., O=Beep Boop Corp., L=San Francisco, S=California, C=US"
Expand Down

0 comments on commit d4e9c83

Please sign in to comment.