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 b4f52d6 commit 592a6f1
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions api/CONFIG.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,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 for the app package manifest
pfx | | A relative path to the pfx file used for signing.

# `window`
Expand Down
4 changes: 4 additions & 0 deletions src/cli/cli.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2619,7 +2619,11 @@ int main (const int argc, const char* argv[]) {
String targetPlatform = optionsWithValue["--platform"];

bool flagRunUserBuildOnly = optionsWithoutValue.find("--only-build") != optionsWithoutValue.end() || equal(rc["build_only"], "true");
<<<<<<< HEAD
bool flagCodeSign = optionsWithoutValue.find("--codesign") != optionsWithoutValue.end() || equal(rc["build_codesign"], "true");
=======
bool flagCodeSign = optionsWithoutValue.find("-c") != optionsWithoutValue.end() || equal(rc["build_codesign"], "true");
>>>>>>> 000036ff (fix(scr/cli/templates.hh): bring back win_logo)
bool flagBuildHeadless = settings["build_headless"] == "true";
bool flagRunHeadless = optionsWithoutValue.find("--headless") != optionsWithoutValue.end();
bool flagShouldRun = optionsWithoutValue.find("--run") != optionsWithoutValue.end() || equal(rc["build_run"], "true");
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 @@ -1845,8 +1845,11 @@ headers = native-module1.hh
; The icon to use for identifying your app on Windows.
icon = "src/icon.png"
; The icon for the app package manifest
; logo = ""
; 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 592a6f1

Please sign in to comment.