Added an alternative GUI based on JUCE; I like FLTK more...
This commit is contained in:
parent
d6ded83beb
commit
cd2f87a8b3
58 changed files with 11136 additions and 10 deletions
|
|
@ -11,12 +11,13 @@ parser = argparse.ArgumentParser(description=__doc__)
|
|||
arguments(parser)
|
||||
parser.add_argument('--build-dir', type=Path, required=True)
|
||||
parser.add_argument('--gui', action='store_true')
|
||||
parser.add_argument('--juce-gui', action='store_true')
|
||||
args = parser.parse_args()
|
||||
source = Path(__file__).resolve().parent.parent
|
||||
entries = []
|
||||
for destination, original in inventory(source, layout(args)):
|
||||
name = destination.name
|
||||
if name == 'BINARY_MANIFEST.json' or (not args.gui and name in ('xtc', 'xtc.desktop')):
|
||||
if (name == 'xtc-juce' and not args.juce_gui) or name == 'BINARY_MANIFEST.json' or (not args.gui and name in ('xtc', 'xtc.desktop')):
|
||||
continue
|
||||
if original is None:
|
||||
original = args.build_dir / name
|
||||
|
|
@ -32,7 +33,7 @@ for destination, original in entries:
|
|||
try:
|
||||
with os.fdopen(fd, 'wb') as output, original.open('rb') as input_file:
|
||||
shutil.copyfileobj(input_file, output)
|
||||
os.fchmod(output.fileno(), 0o755 if destination.name in ('xtc', 'xtc-check') else 0o644)
|
||||
os.fchmod(output.fileno(), 0o755 if destination.name in ('xtc', 'xtc-check', 'xtc-juce') else 0o644)
|
||||
os.replace(pending, destination)
|
||||
finally:
|
||||
Path(pending).unlink(missing_ok=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue