Skip to content

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Artanidos committed Jan 20, 2023
1 parent 34fb66c commit 2fed627
Show file tree
Hide file tree
Showing 9 changed files with 977 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.bat
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ copy images\icon_128.png packages\at.crowdware.FlatSiteBuilder\data\icon


move packages\at.crowdware.FlatSiteBuilder\data\main.exe packages\at.crowdware.FlatSiteBuilder\data\FlatSiteBuilder.exe
C:\Qt\Tools\QtInstallerFramework\4.5\bin\binarycreator -f -c config/config.xml -p packages FlatSiteBuilder-Windows-3.0.0.Setup
C:\Qt\Tools\QtInstallerFramework\3.2.2\bin\binarycreator -f -c config/config.xml -p packages FlatSiteBuilder-Windows-2.3.0.Setup
18 changes: 18 additions & 0 deletions config/config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<Installer>
<Name>FlatSiteBuilder</Name>
<Version>2.3.0</Version>
<Title>FlatSiteBuilder</Title>
<Publisher>CrowdWare</Publisher>
<InstallerWindowIcon>icon/icon_128.png</InstallerWindowIcon>
<InstallerApplicationIcon>icon/icon_128</InstallerApplicationIcon>
<StartMenuDir></StartMenuDir>
<TargetDir>@HomeDir@/FlatSiteBuilder</TargetDir>
<Translations>
<Translation>en.qm</Translation>
</Translations>
</Installer>

<!--
https://doc.qt.io/qtinstallerframework/ifw-globalconfig.html
-->
4 changes: 3 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
from PySide6.QtCore import Qt, QCoreApplication, QSettings, QTranslator, QLocale, QLibraryInfo
from PySide6.QtGui import QPalette, QColor, QIcon, QFont
from PySide6.QtQml import qmlRegisterType
from dulwich import porcelain #needed for the github plugin and pyinstaller
#needed for the plugins and pyinstaller
from dulwich import porcelain
from markdown2 import markdown
import main_rc


Expand Down
28 changes: 28 additions & 0 deletions packages/at.crowdware.FlatSiteBuilder/meta/installscript.qs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
function Component()
{
// default constructor
}

Component.prototype.createOperations = function()
{
// call default implementation to actually install README.txt!
component.createOperations();

if (systemInfo.productType === "windows") {
component.addOperation("CreateShortcut", "@TargetDir@/README.txt", "@StartMenuDir@/README.lnk",
"workingDirectory=@TargetDir@", "iconPath=%SystemRoot%/system32/SHELL32.dll",
"iconId=2", "description=Open README file");
}
}

Component.prototype.createOperations = function()
{
component.createOperations();
if (systemInfo.productType === "windows") {
component.addOperation("CreateShortcut",
"@TargetDir@/FlatSiteBuilder.exe",
"@StartMenuDir@/FlatSiteBuilder.lnk",
"iconPath=@TargetDir@/icon/icon_128.ico", "iconId=0",
"description=Start FlatSiteBuilder");
}
}
9 changes: 9 additions & 0 deletions packages/at.crowdware.FlatSiteBuilder/meta/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<Package>
<DisplayName>FlatSiteBuilder</DisplayName>
<Description>Install FlatSiteBuilder 2.3.0 on your computer.</Description>
<Version>2.3.0</Version>
<ReleaseDate>2023-01-20</ReleaseDate>
<Default>true</Default>
<Script>installscript.qs</Script>
</Package>
6 changes: 0 additions & 6 deletions todo.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,3 @@
File "/home/art/SourceCode/FlatSiteBuilderPython/widgets/contenteditor.py", line 418, in editorClose
if self.editor.changed:
AttributeError: 'NoneType' object has no attribute 'changed'


# Website
Translate website (FlatSiteBuider) from XML to QML
Host a new website on FlatSiteBuiderPython
News should be in english and german
Binary file added translation/FlatSiteBuilder_de.qm
Binary file not shown.
Loading

0 comments on commit 2fed627

Please sign in to comment.