Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
82 lines (63 sloc) 2.26 KB
#
# PyCharm Community turbo.me file
# https://github.com/turboapps/turbome/tree/master/pycharm]
#
# Created with Turbo CMD version 1.4.1085.0
#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0
###################################
# Meta tags
###################################
meta title="PyCharm Community"
meta namespace="jetbrains"
meta name="pycharm"
###################################
# Pull dependency images
###################################
using turbo/turboscript-tools:2016.8.31
###################################
# Download and install
###################################
# Set working directory
cmd mkdir c:\Workspace
workdir c:\Workspace
# Download
batch cmd
echo import requests > getLink.py
echo headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 6.3; WOW64; rv:41.0) Gecko/20100101 Firefox/41.0'} >> getLink.py
echo response = requests.get("https://data.services.jetbrains.com/products/releases?code=PCC&latest=true&type=release", headers=headers, timeout=10) >> getLink.py
echo response.raise_for_status() >> getLink.py
echo json = response.json() >> getLink.py
echo print(json['PCC'][0]['downloads']['windows']['link']) >> getLink.py
cmd python getLink.py
var url = last
cmd "wget --no-check-certificate --quiet -Opycharm.exe ""%url%"""
# Install
cmd pycharm.exe /S
cmd dir "c:\Program Files (x86)\JetBrains" /b > image.txt
cmd findstr "." image.txt
var installDir = "c:\Program Files (x86)\JetBrains\" + last
var exePath = installDir + "\bin\pycharm64.exe"
# Get product version
cmd powershell -ExecutionPolicy Unrestricted -NoProfile -Command "Import-Module Turbo; Get-FileVersion ""%exePath%"""
var version = last
###################################
# Clean up
###################################
cmd powershell -ExecutionPolicy Unrestricted -NoProfile -Command "Import-Module Turbo; Remove-BuildTools"
workdir c:\
cmd rmdir c:\Workspace /s /q
cmd rmdir c:\TurboBuildTools /s /q
###################################
# Environment Variables
###################################
env pythonhome=""
###################################
# Version
###################################
meta tag=version
###################################
# Startup File
###################################
startup file (exePath)