Some fixes on store release

This commit is contained in:
XY Wang 2023-05-17 22:26:09 +08:00
parent 6b98914931
commit fdc565158a
4 changed files with 8 additions and 6 deletions

View File

@ -64,6 +64,7 @@
<AppxBundlePlatforms>neutral</AppxBundlePlatforms>
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
<EntryPointProjectUniqueName>..\Ink Canvas\Ink Canvas.csproj</EntryPointProjectUniqueName>
<GenerateTemporaryStoreCertificate>True</GenerateTemporaryStoreCertificate>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
<AppxBundle>Always</AppxBundle>
@ -162,6 +163,7 @@
<Content Include="Images\Wide310x150Logo.scale-150.png" />
<Content Include="Images\Wide310x150Logo.scale-200.png" />
<Content Include="Images\Wide310x150Logo.scale-400.png" />
<None Include="Package.StoreAssociation.xml" />
<None Include="Ink Canvas Packaging_TemporaryKey.pfx" />
</ItemGroup>
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />

View File

@ -7,13 +7,13 @@
IgnorableNamespaces="uap rescap">
<Identity
Name="ff17074d-bc33-4b1c-a21b-8f9af2e1e8cb"
Publisher="CN=wxriw"
Name="63265WXRIW.9875F4656CA2"
Publisher="CN=FD2EEB64-9B3F-4B12-B833-80497D4F956C"
Version="3.7.0.0" />
<Properties>
<DisplayName>Ink Canvas</DisplayName>
<PublisherDisplayName>wxriw</PublisherDisplayName>
<PublisherDisplayName>WXRIW</PublisherDisplayName>
<Logo>Images\StoreLogo.png</Logo>
</Properties>

View File

@ -15,7 +15,7 @@ namespace Ink_Canvas
System.Threading.Mutex mutex;
public static string[] StartArgs = null;
public static string RootPath = Environment.GetEnvironmentVariable("APPDATA") + "\\Ink Canvas\\Lyricify for Spotify\\";
public static string RootPath = Environment.GetEnvironmentVariable("APPDATA") + "\\Ink Canvas\\";
public App()
{

View File

@ -548,7 +548,7 @@ namespace Ink_Canvas
{
try
{
string text = File.ReadAllText(settingsFileName);
string text = File.ReadAllText(App.RootPath + settingsFileName);
Settings = JsonConvert.DeserializeObject<Settings>(text);
}
catch { }
@ -3100,7 +3100,7 @@ namespace Ink_Canvas
string text = JsonConvert.SerializeObject(Settings, Formatting.Indented);
try
{
File.WriteAllText(settingsFileName, text);
File.WriteAllText(App.RootPath + settingsFileName, text);
}
catch { }
}