From cbd29f57eb4e704c3e14c16e8458bc46da01a087 Mon Sep 17 00:00:00 2001 From: Ivan Denisov Date: Sun, 14 Aug 2011 03:32:41 +0800 Subject: [PATCH] =?utf8?q?=D0=A1=D0=B4=D0=B0=D0=BB=D0=B0=D0=BB=20=D1=81?= =?utf8?q?=D0=BA=D1=80=D0=B8=D0=BF=D1=82=20=D0=B4=D0=BB=D1=8F=20=D0=B3?= =?utf8?q?=D0=B5=D0=BD=D0=B5=D1=80=D0=B0=D1=86=D0=B8=D0=B8=20=D0=BA=D0=BE?= =?utf8?q?=D0=BC=D0=B0=D0=BD=D0=B4=D1=8B=20=D0=B7=D0=B0=D0=BF=D1=83=D1=81?= =?utf8?q?=D0=BA=D0=B0=20=D1=81=D1=80=D0=B5=D0=B4=D1=8B=20=D0=B8=20readme?= =?utf8?q?=20=D1=84=D0=B0=D0=B9=D0=BB=20=D1=81=20=D0=BF=D0=BE=D1=8F=D1=81?= =?utf8?q?=D0=BD=D0=B5=D0=BD=D0=B8=D1=8F=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- readme | 7 +++++++ setup_script.py | 31 +++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 readme create mode 100755 setup_script.py diff --git a/readme b/readme new file mode 100644 index 0000000..98aa301 --- /dev/null +++ b/readme @@ -0,0 +1,7 @@ +Для разработки приложений для Linux Ubuntu +поместите папку в удобное место на компьютере +запустите скрипт setup_script.py +он создаст скрипт для запуска BB, к контекстном меню папки, в разделе сценарии появится пункт BlackBox LinDev +запустив его вы открываете BlackBox.exe через wine в папке с проектом новой среды для Linux, при этом часть файлов на время прячется, чтобы среда корректно запустилась. + +Для работы стребуется Wine. diff --git a/setup_script.py b/setup_script.py new file mode 100755 index 0000000..a4b4b59 --- /dev/null +++ b/setup_script.py @@ -0,0 +1,31 @@ +#!/usr/bin/python + +import os + +name = "BlackBox LinDev" + +OUT = open(name, "w") + +print >> OUT, "#!/bin/bash" + +cwd = os.getcwd() + +print >> OUT, "mkdir "+cwd+"/hide" +print >> OUT, "mv "+cwd+"/Lin "+cwd+"/hide/" +print >> OUT, "mv "+cwd+"/System "+cwd+"/hide/" +print >> OUT, "mv "+cwd+"/Host "+cwd+"/hide/" +print >> OUT, "mv "+cwd+"/Code "+cwd+"/hide/" + +print >> OUT, "wine "+cwd+"/bb16rc6win/BlackBox.exe -use \"`winepath -w \"$PWD\"`\" $* &" + +print >> OUT, "sleep 1" + +print >> OUT, "mv "+cwd+"/hide/Lin "+cwd+"/" +print >> OUT, "mv "+cwd+"/hide/System "+cwd+"/" +print >> OUT, "mv "+cwd+"/hide/Host "+cwd+"/" +print >> OUT, "mv "+cwd+"/hide/Code "+cwd+"/" +print >> OUT, "rm "+cwd+"/hide -R" + +os.system('chmod +x "'+name+'"') + +os.system('mv "'+name+'" "'+os.environ['HOME']+'/.gnome2/nautilus-scripts/" ') -- 2.29.2