summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 146b729)
raw | patch | inline | side by side (parent: 146b729)
author | Ivan Denisov <divan@robook.(none)> | |
Sat, 13 Aug 2011 19:32:41 +0000 (03:32 +0800) | ||
committer | Ivan Denisov <divan@robook.(none)> | |
Sat, 13 Aug 2011 19:32:41 +0000 (03:32 +0800) |
readme | [new file with mode: 0644] | patch | blob |
setup_script.py | [new file with mode: 0755] | patch | blob |
diff --git a/readme b/readme
--- /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
--- /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/" ')