-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
938 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/bin/bash | ||
|
||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) | ||
BINARYCREATOR=$1 | ||
source "$SCRIPT_DIR/env.sh" | ||
|
||
if [[ "$BINARYCREATOR" == "" ]]; then | ||
if [[ `command -v binarycreator` != "" ]]; then | ||
BINARYCREATOR=binarycreator | ||
else | ||
echo "No binarycreator executable path specified!" | ||
exit 1 | ||
fi | ||
fi | ||
|
||
echo "D: binarycreator: $BINARYCREATOR" | ||
echo "Creating installer binary..." | ||
$BINARYCREATOR --offline-only -c config/config.xml -p packages "$FILE_NAME" || exit $? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Installer> | ||
<Name>ScratchCPP Player</Name> | ||
<Version></Version> | ||
<Title>ScratchCPP Player</Title> | ||
<Publisher>adazem009</Publisher> | ||
<StartMenuDir>ScratchCPP</StartMenuDir> | ||
<TargetDir>@ApplicationsDir@/ScratchCPP</TargetDir> | ||
<!-- <InstallerWindowIcon>windowicon.png</InstallerWindowIcon> | ||
<InstallerApplicationIcon>appicon</InstallerApplicationIcon> --> | ||
<WizardStyle>Modern</WizardStyle> | ||
<StyleSheet>style.qss</StyleSheet> | ||
<ControlScript>controller.qs</ControlScript> | ||
<RemoteRepositories> | ||
<Repository> | ||
<Url>http://scratchcpp.github.io/installer-repo</Url> | ||
<Enabled>1</Enabled> | ||
<DisplayName>ScratchCPP official repository</DisplayName> | ||
</Repository> | ||
</RemoteRepositories> | ||
</Installer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
function Controller() { | ||
installer.setMessageBoxAutomaticAnswer("installationErrorWithRetry", QMessageBox.Ignore); | ||
installer.setMessageBoxAutomaticAnswer("installationError", QMessageBox.Ignore); | ||
} | ||
|
||
Controller.prototype.IntroductionPageCallback = function() { | ||
if(installer.isUpdater()) | ||
gui.clickButton(buttons.NextButton); | ||
} | ||
|
||
Controller.prototype.ComponentSelectionPageCallback = function() { | ||
if(installer.isUpdater()) | ||
gui.clickButton(buttons.NextButton); | ||
} | ||
|
||
Controller.prototype.ReadyForInstallationPageCallback = function() { | ||
if(installer.isUpdater()) { | ||
gui.clickButton(buttons.NextButton); | ||
installer.setDefaultPageVisible(QInstaller.Introduction, false); | ||
installer.setDefaultPageVisible(QInstaller.TargetDirectory, false); | ||
installer.setDefaultPageVisible(QInstaller.ReadyForInstallation, false); | ||
installer.setDefaultPageVisible(QInstaller.ComponentSelection, false); | ||
installer.setDefaultPageVisible(QInstaller.StartMenuSelection, false); | ||
installer.setDefaultPageVisible(QInstaller.LicenseCheck, false); | ||
} | ||
} | ||
|
||
Controller.prototype.FinishedPageCallback = function() { | ||
if(installer.isUpdater()) { | ||
var execName = installer.value("updateSource"); | ||
if(execName != "") { | ||
installer.executeDetached(execName); | ||
gui.clickButton(buttons.FinishButton); | ||
gui.clickButton(buttons.QuitButton); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
QWidget | ||
{ | ||
color: white; | ||
background-color: rgb(61, 56, 56); | ||
} | ||
|
||
QPushButton | ||
{ | ||
background-color: rgb(50, 130, 172); | ||
border-style: solid; | ||
border-width: 1px; | ||
border-color: rgb(61, 56, 56); | ||
border-radius: 5px; | ||
min-height: 25px; | ||
max-height: 25px; | ||
min-width: 60px; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
} | ||
|
||
QPushButton:disabled | ||
{ | ||
background-color: rgb(30, 77, 102); | ||
} | ||
|
||
QPushButton:pressed, QPushButton:checked | ||
{ | ||
background: qlineargradient(x1:0, y1:1, x2:0, y2:0, stop:0 rgba(50, 130, 172, 60%), stop:1 rgba(30, 77, 102, 60%)); | ||
} | ||
|
||
QProgressBar | ||
{ | ||
text-align: center; | ||
} | ||
|
||
QProgressBar::chunk | ||
{ | ||
background-color: qlineargradient(x1:0, y1:0, x2:1, y2:0, stop:0 rgba(50, 130, 172, 60%), stop:1 rgba(30, 77, 102, 60%)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/bash | ||
|
||
export FILE_NAME="ScratchCPP_Player_installer" |
Empty file.
13 changes: 13 additions & 0 deletions
13
release/win_installer/packages/com.microsoft.vcredist/meta/installscript.qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
function Component(){} | ||
|
||
Component.prototype.createOperations = function() | ||
{ | ||
try { | ||
component.createOperations(); | ||
if (installer.value("os") === "win") { | ||
component.addElevatedOperation("Execute", "{0,1638}", "@TargetDir@/VC_redist.x64.exe", "/norestart", "/quiet"); | ||
} | ||
} catch (e) { | ||
print(e); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
release/win_installer/packages/com.microsoft.vcredist/meta/package.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Package> | ||
<DisplayName>Microsoft Visual C++ Redistributable</DisplayName> | ||
<Description>Installs the Visual C++ redistributables</Description> | ||
<Version>14.29.30139</Version> | ||
<ReleaseDate>2019-04-02</ReleaseDate> | ||
<Virtual>true</Virtual> | ||
<Script>installscript.qs</Script> | ||
<UserInterfaces> | ||
<UserInterface>page.ui</UserInterface> | ||
</UserInterfaces> | ||
</Package> |
28 changes: 28 additions & 0 deletions
28
release/win_installer/packages/com.microsoft.vcredist/meta/page.ui
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<ui version="4.0"> | ||
<class>Page</class> | ||
<widget class="QWidget" name="Page"> | ||
<property name="geometry"> | ||
<rect> | ||
<x>0</x> | ||
<y>0</y> | ||
<width>400</width> | ||
<height>300</height> | ||
</rect> | ||
</property> | ||
<property name="windowTitle"> | ||
<string>Dynamic page example</string> | ||
</property> | ||
<layout class="QVBoxLayout" name="verticalLayout"> | ||
<item> | ||
<widget class="QLabel" name="m_pageLabel"> | ||
<property name="alignment"> | ||
<set>Qt::AlignCenter</set> | ||
</property> | ||
</widget> | ||
</item> | ||
</layout> | ||
</widget> | ||
<resources/> | ||
<connections/> | ||
</ui> |
Empty file.
17 changes: 17 additions & 0 deletions
17
release/win_installer/packages/com.scratchcpp.player/meta/installscript.qs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
function Component() { } | ||
|
||
Component.prototype.createOperations = function() | ||
{ | ||
component.createOperations(); | ||
programName = "ScratchCPP Player"; | ||
execName = "scratchcpp-player"; | ||
programDescription = "C++-based Scratch project player"; | ||
if (systemInfo.productType === "windows") { | ||
component.addOperation("CreateShortcut", "@TargetDir@/" + programName + "/" + execName + ".exe", "@StartMenuDir@/" + programName + ".lnk", | ||
"workingDirectory=@TargetDir@/" + programName, "iconPath=@TargetDir@/" + programName + "/" + execName + ".exe", | ||
"iconId=0", "description=" + programDescription); | ||
component.addOperation("CreateShortcut", "@TargetDir@/" + programName + "/" + execName + ".exe", "@DesktopDir@/" + programName + ".lnk", | ||
"workingDirectory=@TargetDir@/" + programName, "iconPath=@TargetDir@/" + programName + "/" + execName + ".exe", | ||
"iconId=0", "description=" + programDescription); | ||
} | ||
} |
Oops, something went wrong.