mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
fix recording window jiggle, add debug mode to mac build scripts
This commit is contained in:
parent
0977c50a0c
commit
6c975bbdd5
3 changed files with 12 additions and 7 deletions
|
@ -20,13 +20,13 @@ def getAudio(parent, string=""):
|
||||||
but.setIcon(QIcon(":/icons/media-playback-stop.png"))
|
but.setIcon(QIcon(":/icons/media-playback-stop.png"))
|
||||||
#but.setIconSize(QSize(32, 32))
|
#but.setIconSize(QSize(32, 32))
|
||||||
mb.addButton(but, QMessageBox.RejectRole)
|
mb.addButton(but, QMessageBox.RejectRole)
|
||||||
mb.show()
|
|
||||||
t = time.time()
|
t = time.time()
|
||||||
r.start()
|
r.start()
|
||||||
QApplication.instance().processEvents()
|
QApplication.instance().processEvents()
|
||||||
while not mb.clickedButton():
|
while not mb.clickedButton():
|
||||||
txt =_("Recording...<br>Time: %0.1f")
|
txt =_("Recording...<br>Time: %0.1f")
|
||||||
mb.setText(txt % (time.time() - t))
|
mb.setText(txt % (time.time() - t))
|
||||||
|
mb.show()
|
||||||
QApplication.instance().processEvents()
|
QApplication.instance().processEvents()
|
||||||
# ensure at least a second captured
|
# ensure at least a second captured
|
||||||
saveGeom(mb, "audioRecorder")
|
saveGeom(mb, "audioRecorder")
|
||||||
|
|
|
@ -1,8 +1,10 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
cd /Volumes/Two/anki
|
cd /Volumes/Two/anki
|
||||||
echo "cleaning up..."
|
if [ "x$debug" = "x" ]; then
|
||||||
rm -rf build dist
|
echo "cleaning up..."
|
||||||
|
rm -rf build dist
|
||||||
|
fi
|
||||||
echo "syncing updates..."
|
echo "syncing updates..."
|
||||||
rsync -av reflex:Lib/code/libanki --exclude .git --exclude build --exclude dist --delete .
|
rsync -av reflex:Lib/code/libanki --exclude .git --exclude build --exclude dist --delete .
|
||||||
rsync -av reflex:Lib/code/ankiqt --exclude .git --exclude build --exclude dist --delete .
|
rsync -av reflex:Lib/code/ankiqt --exclude .git --exclude build --exclude dist --delete .
|
||||||
|
|
|
@ -27,6 +27,8 @@ class bdist_dmg(Command):
|
||||||
|
|
||||||
def run(self):
|
def run(self):
|
||||||
self.run_command('py2app')
|
self.run_command('py2app')
|
||||||
|
if 'debug' in os.environ:
|
||||||
|
return
|
||||||
# zlib
|
# zlib
|
||||||
result = os.spawnvp(os.P_WAIT, 'hdiutil', (
|
result = os.spawnvp(os.P_WAIT, 'hdiutil', (
|
||||||
'hdiutil create -ov -format UDZO ' +
|
'hdiutil create -ov -format UDZO ' +
|
||||||
|
@ -56,6 +58,7 @@ PLIST = dict(
|
||||||
OPTIONS = {
|
OPTIONS = {
|
||||||
'argv_emulation': True,
|
'argv_emulation': True,
|
||||||
'optimize': 0,
|
'optimize': 0,
|
||||||
|
'alias': 'debug' in os.environ,
|
||||||
'plist': PLIST,
|
'plist': PLIST,
|
||||||
'iconfile': 'ankiqt/mac/anki.icns',
|
'iconfile': 'ankiqt/mac/anki.icns',
|
||||||
"includes": ["sip", "cgi", "encodings", "encodings.utf_8",
|
"includes": ["sip", "cgi", "encodings", "encodings.utf_8",
|
||||||
|
|
Loading…
Reference in a new issue