Skip to content

Commit

Permalink
Add version
Browse files Browse the repository at this point in the history
+ create note directory when it not exist
+add version info
  • Loading branch information
shaoziyang committed Aug 27, 2021
1 parent d15b70a commit cd311a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
16 changes: 8 additions & 8 deletions launch/JoplinPortable.bdsproj
Original file line number Diff line number Diff line change
Expand Up @@ -145,25 +145,25 @@
<Language Name="RootDir"></Language>
</Language>
<VersionInfo>
<VersionInfo Name="IncludeVerInfo">False</VersionInfo>
<VersionInfo Name="IncludeVerInfo">True</VersionInfo>
<VersionInfo Name="AutoIncBuild">False</VersionInfo>
<VersionInfo Name="MajorVer">1</VersionInfo>
<VersionInfo Name="MinorVer">0</VersionInfo>
<VersionInfo Name="MinorVer">1</VersionInfo>
<VersionInfo Name="Release">0</VersionInfo>
<VersionInfo Name="Build">0</VersionInfo>
<VersionInfo Name="Debug">False</VersionInfo>
<VersionInfo Name="PreRelease">False</VersionInfo>
<VersionInfo Name="Special">False</VersionInfo>
<VersionInfo Name="Private">False</VersionInfo>
<VersionInfo Name="DLL">False</VersionInfo>
<VersionInfo Name="Locale">2052</VersionInfo>
<VersionInfo Name="CodePage">936</VersionInfo>
<VersionInfo Name="Locale">1033</VersionInfo>
<VersionInfo Name="CodePage">1252</VersionInfo>
</VersionInfo>
<VersionInfoKeys>
<VersionInfoKeys Name="CompanyName"></VersionInfoKeys>
<VersionInfoKeys Name="FileDescription"></VersionInfoKeys>
<VersionInfoKeys Name="FileVersion">1.0.0.0</VersionInfoKeys>
<VersionInfoKeys Name="InternalName"></VersionInfoKeys>
<VersionInfoKeys Name="CompanyName">https://github.com/shaoziyang/JoplinPortable</VersionInfoKeys>
<VersionInfoKeys Name="FileDescription">Joplin Portable</VersionInfoKeys>
<VersionInfoKeys Name="FileVersion">1.1.0.0</VersionInfoKeys>
<VersionInfoKeys Name="InternalName">https://gitee.com/shaoziyang/joplinportable</VersionInfoKeys>
<VersionInfoKeys Name="LegalCopyright"></VersionInfoKeys>
<VersionInfoKeys Name="LegalTrademarks"></VersionInfoKeys>
<VersionInfoKeys Name="OriginalFilename"></VersionInfoKeys>
Expand Down
5 changes: 4 additions & 1 deletion launch/JoplinPortable.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ begin
else
DataPath := path + 'Notes\' + DataPath;

ShellExecute(0, 'open', PChar(AppName), PChar('--profile ' + DataPath), '', SW_SHOW);
if not DirectoryExists(DataPath) then
CreateDir(DataPath);

ShellExecute(0, 'open', PChar(AppName), PChar('--profile "' + DataPath + '"'), '', SW_SHOW);
end;
end.

Binary file modified launch/JoplinPortable.res
Binary file not shown.

0 comments on commit cd311a8

Please sign in to comment.