Initial commit

This commit is contained in:
James 2017-07-28 14:12:36 +10:00
parent d570f25817
commit 6c69b049b1
7 changed files with 60 additions and 0 deletions

3
build.bat Normal file
View file

@ -0,0 +1,3 @@
rem Placeholder!
rem You are going to want to adapt this
T:\Applications\Qt\Tools\QtInstallerFramework\2.0\bin\binarycreator.exe -c config\config.xml -p empty -n CitraInstaller.exe -v -v -v

22
config/config.xml Normal file
View file

@ -0,0 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<Installer>
<Name>Citra</Name>
<Version>1.0.0</Version>
<Title>Citra Updater</Title>
<Publisher>Citra team</Publisher>
<StartMenuDir>Citra</StartMenuDir>
<TargetDir>@HomeDir@/Citra</TargetDir>
<RunProgram>@TargetDir@/nightly/citra-qt.exe</RunProgram>
<InstallerApplicationIcon>icon</InstallerApplicationIcon>
<InstallerWindowIcon>icon.png</InstallerWindowIcon>
<RunProgramDescription>Start Citra</RunProgramDescription>
<!-- TODO: Move to packages
<ControlScript>installscript.qs</ControlScript>-->
<RemoteRepositories>
<Repository>
<Url>https://citra.jselby.net/repository</Url>
<Enabled>1</Enabled>
<DisplayName>Selby's Testing Repo</DisplayName>
</Repository>
</RemoteRepositories>
</Installer>

BIN
config/icon.icns Normal file

Binary file not shown.

BIN
config/icon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

BIN
config/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

35
config/installscript.qs Normal file
View file

@ -0,0 +1,35 @@
function Controller()
{
}
Controller.prototype.ComponentSelectionPageCallback = function()
{
/*console.log("Kernel type: " + systemInfo.kernelType);
var platform;
if (systemInfo.kernelType === "winnt") { // Windows
platform = "windows";
} else if (systemInfo.kernelType === "darwin") { // Mac
platform = "osx";
} else if (systemInfo.kernelType === "linux") { // Linux
platform = "linux";
} else { // else, no installable components will appear
platform = "unknown";
}
var components = installer.components();
for (var i = 0; i < components.length; i++) {
var component = components[i];
var name = component.name
.replace("msvc", "windows")
.replace("mingw", "windows");
if (name.indexOf(platform) === -1) {
component.setValue("Virtual", "true");
component.setValue("Default", "false");
} else {
component.setValue("Default", "true"); // This only applies to "script" tagged components
component.setValue("Enabled", "true");
}
}*/
}

0
packages/.gitkeep Normal file
View file