mirror of https://gitlab.com/basile.b/dexed.git
Installer handles dscanner, close #171
This commit is contained in:
parent
d5d4474bcd
commit
e41911157a
|
@ -41,11 +41,13 @@ object CurrentProject: TCENativeProject
|
||||||
'<CPP>'
|
'<CPP>'
|
||||||
)
|
)
|
||||||
preBuildProcess.executable = 'bash'
|
preBuildProcess.executable = 'bash'
|
||||||
|
preBuildProcess.workingDirectory = '<CPP>'
|
||||||
preBuildProcess.options = [poUsePipes, poStderrToOutPut]
|
preBuildProcess.options = [poUsePipes, poStderrToOutPut]
|
||||||
preBuildProcess.parameters.Strings = (
|
preBuildProcess.parameters.Strings = (
|
||||||
'zip-nux32.sh'
|
'zip-nux32.sh'
|
||||||
)
|
)
|
||||||
postBuildProcess.executable = 'bash'
|
postBuildProcess.executable = 'bash'
|
||||||
|
postBuildProcess.workingDirectory = '<CPP>'
|
||||||
postBuildProcess.options = [poUsePipes, poStderrToOutPut]
|
postBuildProcess.options = [poUsePipes, poStderrToOutPut]
|
||||||
postBuildProcess.parameters.Strings = (
|
postBuildProcess.parameters.Strings = (
|
||||||
'setupzip-nux-noarch.sh'
|
'setupzip-nux-noarch.sh'
|
||||||
|
@ -64,20 +66,23 @@ object CurrentProject: TCENativeProject
|
||||||
'<CPP>'
|
'<CPP>'
|
||||||
)
|
)
|
||||||
preBuildProcess.executable = 'sh'
|
preBuildProcess.executable = 'sh'
|
||||||
|
preBuildProcess.workingDirectory = '<CPP>'
|
||||||
preBuildProcess.options = [poUsePipes, poStderrToOutPut]
|
preBuildProcess.options = [poUsePipes, poStderrToOutPut]
|
||||||
preBuildProcess.parameters.Strings = (
|
preBuildProcess.parameters.Strings = (
|
||||||
'zip-nux64.sh'
|
'zip-nux64.sh'
|
||||||
)
|
)
|
||||||
postBuildProcess.executable = 'sh'
|
postBuildProcess.executable = 'sh'
|
||||||
|
postBuildProcess.workingDirectory = '<CPP>'
|
||||||
postBuildProcess.options = [poUsePipes, poStderrToOutPut]
|
postBuildProcess.options = [poUsePipes, poStderrToOutPut]
|
||||||
postBuildProcess.parameters.Strings = (
|
postBuildProcess.parameters.Strings = (
|
||||||
'setupzip-nux-noarch.sh'
|
'setupzip-nux-noarch.sh'
|
||||||
'<CPO>'
|
'<CPO>'
|
||||||
)
|
)
|
||||||
|
runOptions.options = [poUsePipes]
|
||||||
end>
|
end>
|
||||||
Sources.Strings = (
|
Sources.Strings = (
|
||||||
'cesetup.d'
|
'cesetup.d'
|
||||||
)
|
)
|
||||||
ConfigurationIndex = 2
|
ConfigurationIndex = 2
|
||||||
version = '3update2'
|
version = '3update3'
|
||||||
end
|
end
|
||||||
|
|
|
@ -41,10 +41,11 @@ immutable Resource[] ceResources =
|
||||||
Resource(cast(ImpType) import("coedit.license.txt"), "coedit.license.txt", Kind.doc)
|
Resource(cast(ImpType) import("coedit.license.txt"), "coedit.license.txt", Kind.doc)
|
||||||
];
|
];
|
||||||
|
|
||||||
immutable Resource[] dcdResources =
|
immutable Resource[] thirdPartBinaries =
|
||||||
[
|
[
|
||||||
Resource(cast(ImpType) import("dcd-server" ~ exeExt), "dcd-server" ~ exeExt, Kind.exe),
|
Resource(cast(ImpType) import("dcd-server" ~ exeExt), "dcd-server" ~ exeExt, Kind.exe),
|
||||||
Resource(cast(ImpType) import("dcd-client" ~ exeExt), "dcd-client" ~ exeExt, Kind.exe),
|
Resource(cast(ImpType) import("dcd-client" ~ exeExt), "dcd-client" ~ exeExt, Kind.exe),
|
||||||
|
Resource(cast(ImpType) import("dscanner" ~ exeExt), "dscanner" ~ exeExt, Kind.exe),
|
||||||
Resource(cast(ImpType) import("dcd.license.txt"), "dcd.license.txt", Kind.doc)
|
Resource(cast(ImpType) import("dcd.license.txt"), "dcd.license.txt", Kind.doc)
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -119,12 +120,13 @@ static this()
|
||||||
|
|
||||||
void main(string[] args)
|
void main(string[] args)
|
||||||
{
|
{
|
||||||
bool nodcd;
|
bool noTools;
|
||||||
bool uninstall;
|
bool uninstall;
|
||||||
bool listfiles;
|
bool listfiles;
|
||||||
|
|
||||||
getopt(args, config.passThrough,
|
getopt(args, config.passThrough,
|
||||||
"nodcd", &nodcd,
|
"nodcd", &noTools,
|
||||||
|
"notools", &noTools,
|
||||||
"u|uninstall", &uninstall,
|
"u|uninstall", &uninstall,
|
||||||
"l|list", &listfiles
|
"l|list", &listfiles
|
||||||
);
|
);
|
||||||
|
@ -146,7 +148,7 @@ void main(string[] args)
|
||||||
fname = targetFilename(res);
|
fname = targetFilename(res);
|
||||||
writefln(fmtRes, fname, exists(fname));
|
writefln(fmtRes, fname, exists(fname));
|
||||||
}
|
}
|
||||||
foreach (ref res; dcdResources)
|
foreach (ref res; thirdPartBinaries)
|
||||||
{
|
{
|
||||||
fname = targetFilename(res);
|
fname = targetFilename(res);
|
||||||
writefln(fmtRes, fname, exists(fname));
|
writefln(fmtRes, fname, exists(fname));
|
||||||
|
@ -179,10 +181,10 @@ void main(string[] args)
|
||||||
Formater.justify!'L'("-l | --list: list files and status");
|
Formater.justify!'L'("-l | --list: list files and status");
|
||||||
if (!uninstall)
|
if (!uninstall)
|
||||||
{
|
{
|
||||||
if (!nodcd) Formater.justify!'L'("--nodcd: skip DCD setup");
|
|
||||||
Formater.justify!'L'("-u | --uninstall: uninstall");
|
Formater.justify!'L'("-u | --uninstall: uninstall");
|
||||||
|
if (!noTools) Formater.justify!'L'("--notools: skip DCD and Dscanner setup");
|
||||||
}
|
}
|
||||||
else if (!nodcd) Formater.justify!'L'("--nodcd: do not remove DCD");
|
else if (!noTools) Formater.justify!'L'("--notools: do not remove DCD and Dscanner");
|
||||||
Formater.justify!'L'("press A to abort or another key to start...");
|
Formater.justify!'L'("press A to abort or another key to start...");
|
||||||
Formater.separate;
|
Formater.separate;
|
||||||
|
|
||||||
|
@ -211,7 +213,7 @@ void main(string[] args)
|
||||||
Formater.justify!'L'(res.destName ~ oldMsg[done]);
|
Formater.justify!'L'(res.destName ~ oldMsg[done]);
|
||||||
failures += !done;
|
failures += !done;
|
||||||
}
|
}
|
||||||
if (!nodcd) foreach (ref res; dcdResources)
|
if (!noTools) foreach (ref res; thirdPartBinaries)
|
||||||
{
|
{
|
||||||
done = installResource(res);
|
done = installResource(res);
|
||||||
Formater.justify!'L'(res.destName ~ extractMsg[done]);
|
Formater.justify!'L'(res.destName ~ extractMsg[done]);
|
||||||
|
@ -254,7 +256,7 @@ void main(string[] args)
|
||||||
Formater.justify!'L'(res.destName ~ rmMsg[done]);
|
Formater.justify!'L'(res.destName ~ rmMsg[done]);
|
||||||
failures += !done;
|
failures += !done;
|
||||||
}
|
}
|
||||||
if (!nodcd) foreach (ref res; dcdResources)
|
if (!noTools) foreach (ref res; thirdPartBinaries)
|
||||||
{
|
{
|
||||||
done = uninstallResource(res);
|
done = uninstallResource(res);
|
||||||
Formater.justify!'L'(res.destName ~ rmMsg[done]);
|
Formater.justify!'L'(res.destName ~ rmMsg[done]);
|
||||||
|
|
|
@ -43,7 +43,7 @@ Type=Application" > $shcdir/coedit.desktop
|
||||||
cd $cfgdir
|
cd $cfgdir
|
||||||
echo "Package: coedit
|
echo "Package: coedit
|
||||||
Version: $maj$min
|
Version: $maj$min
|
||||||
Section: base
|
Section: devel
|
||||||
Priority: optional
|
Priority: optional
|
||||||
Date: $dte
|
Date: $dte
|
||||||
Architecture: $arch
|
Architecture: $arch
|
||||||
|
|
|
@ -8,5 +8,5 @@ zip -9 \
|
||||||
$fld/dcd.license.txt $fld/coedit.license.txt \
|
$fld/dcd.license.txt $fld/coedit.license.txt \
|
||||||
$fld/coedit $fld/dastworx \
|
$fld/coedit $fld/dastworx \
|
||||||
$fld/coedit.ico $fld/coedit.png \
|
$fld/coedit.ico $fld/coedit.png \
|
||||||
$fld/dcd-server $fld/dcd-client
|
$fld/dcd-server $fld/dcd-client $fld/dscanner
|
||||||
rm -rf coedit-x86
|
rm -rf coedit-x86
|
||||||
|
|
|
@ -8,5 +8,5 @@ zip -9 \
|
||||||
$fld/dcd.license.txt $fld/coedit.license.txt \
|
$fld/dcd.license.txt $fld/coedit.license.txt \
|
||||||
$fld/coedit $fld/dastworx \
|
$fld/coedit $fld/dastworx \
|
||||||
$fld/coedit.ico $fld/coedit.png \
|
$fld/coedit.ico $fld/coedit.png \
|
||||||
$fld/dcd-server $fld/dcd-client
|
$fld/dcd-server $fld/dcd-client $fld/dscanner
|
||||||
rm -rf coedit-x86_64
|
rm -rf coedit-x86_64
|
||||||
|
|
|
@ -7,4 +7,4 @@ cd win32
|
||||||
dcd.license.txt coedit.license.txt^
|
dcd.license.txt coedit.license.txt^
|
||||||
coedit.exe dastworx.exe^
|
coedit.exe dastworx.exe^
|
||||||
coedit.ico coedit.png^
|
coedit.ico coedit.png^
|
||||||
dcd-server.exe dcd-client.exe
|
dcd-server.exe dcd-client.exe dscanner.exe
|
||||||
|
|
Loading…
Reference in New Issue