mirror of
https://github.com/rbreaves/kinto.git
synced 2025-08-02 09:06:40 +02:00
- More updates to the Windows based installer
This commit is contained in:
@@ -1 +0,0 @@
|
|||||||
Add-AppxPackage -register "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.7_3.7.2241.0_x64__qbz5n2kfra8p0\AppxManifest.xml" -DisableDevelopmentMode
|
|
7
setup.py
7
setup.py
@@ -17,6 +17,9 @@ def windows_setup():
|
|||||||
# Short DOS path notation
|
# Short DOS path notation
|
||||||
path= cmdline('echo %cd%')[:-1]
|
path= cmdline('echo %cd%')[:-1]
|
||||||
if default > 0 and default < 3:
|
if default > 0 and default < 3:
|
||||||
|
print("Will now install chocolatey and autohotkey with elevated privileges...")
|
||||||
|
print("This install will fail if you are not running with elevated privileges")
|
||||||
|
os.system('powershell -executionpolicy bypass ".\\windows\\autohotkey.ps1"')
|
||||||
print("Copying autohotkey combinations for Terminals & Editors...")
|
print("Copying autohotkey combinations for Terminals & Editors...")
|
||||||
os.system("copy /Y " + path + "\\windows\\kinto.ahk " + path + "\\windows\\kinto-new.ahk")
|
os.system("copy /Y " + path + "\\windows\\kinto.ahk " + path + "\\windows\\kinto-new.ahk")
|
||||||
if default == 1:
|
if default == 1:
|
||||||
@@ -39,10 +42,6 @@ def windows_setup():
|
|||||||
print("Uninstall of Kinto is Complete.")
|
print("Uninstall of Kinto is Complete.")
|
||||||
if default > 0 and default < 3:
|
if default > 0 and default < 3:
|
||||||
stvscode = yn_choice(bcolors.CYELLOW2 + "Would you like to use Sublime Text 3 keymaps in VS Code?\n" + bcolors.ENDC)
|
stvscode = yn_choice(bcolors.CYELLOW2 + "Would you like to use Sublime Text 3 keymaps in VS Code?\n" + bcolors.ENDC)
|
||||||
print("Will now install chocolatey and autohotkey with elevated privileges...")
|
|
||||||
print("This install will fail if you are not running with elevated privileges")
|
|
||||||
os.system('powershell -executionpolicy bypass ".\\windows\\autohotkey.ps1"')
|
|
||||||
os.system('refreshenv')
|
|
||||||
print("\nWill now install Ubuntu Termimnal Theme as default...")
|
print("\nWill now install Ubuntu Termimnal Theme as default...")
|
||||||
os.system("regedit " + path + "\\windows\\theme_ubuntu.reg")
|
os.system("regedit " + path + "\\windows\\theme_ubuntu.reg")
|
||||||
os.system('robocopy '+ path + '\\assets "%userprofile%\\.kinto\\assets" /E')
|
os.system('robocopy '+ path + '\\assets "%userprofile%\\.kinto\\assets" /E')
|
||||||
|
@@ -9,6 +9,13 @@ else{
|
|||||||
if(-not(test-path "C:\Program Files\AutoHotkey\AutoHotkey.exe")){
|
if(-not(test-path "C:\Program Files\AutoHotkey\AutoHotkey.exe")){
|
||||||
choco install autohotkey.install
|
choco install autohotkey.install
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
Write-Output "Autohotkey is already installed"
|
||||||
|
}
|
||||||
if(-not(test-path "C:\Strawberry\")){
|
if(-not(test-path "C:\Strawberry\")){
|
||||||
choco install strawberryperl
|
choco install strawberryperl
|
||||||
|
refreshenv
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
Write-Output "Perl is already installed"
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user