mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32: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.setIconSize(QSize(32, 32))
|
||||
mb.addButton(but, QMessageBox.RejectRole)
|
||||
mb.show()
|
||||
t = time.time()
|
||||
r.start()
|
||||
QApplication.instance().processEvents()
|
||||
while not mb.clickedButton():
|
||||
txt =_("Recording...<br>Time: %0.1f")
|
||||
mb.setText(txt % (time.time() - t))
|
||||
mb.show()
|
||||
QApplication.instance().processEvents()
|
||||
# ensure at least a second captured
|
||||
saveGeom(mb, "audioRecorder")
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
#!/bin/bash
|
||||
|
||||
cd /Volumes/Two/anki
|
||||
if [ "x$debug" = "x" ]; then
|
||||
echo "cleaning up..."
|
||||
rm -rf build dist
|
||||
fi
|
||||
echo "syncing updates..."
|
||||
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 .
|
||||
|
|
|
@ -27,6 +27,8 @@ class bdist_dmg(Command):
|
|||
|
||||
def run(self):
|
||||
self.run_command('py2app')
|
||||
if 'debug' in os.environ:
|
||||
return
|
||||
# zlib
|
||||
result = os.spawnvp(os.P_WAIT, 'hdiutil', (
|
||||
'hdiutil create -ov -format UDZO ' +
|
||||
|
@ -56,6 +58,7 @@ PLIST = dict(
|
|||
OPTIONS = {
|
||||
'argv_emulation': True,
|
||||
'optimize': 0,
|
||||
'alias': 'debug' in os.environ,
|
||||
'plist': PLIST,
|
||||
'iconfile': 'ankiqt/mac/anki.icns',
|
||||
"includes": ["sip", "cgi", "encodings", "encodings.utf_8",
|
||||
|
|
Loading…
Reference in a new issue