<commit_before>### Download installer SpotifySetup.exe from http://download.spotify.com/SpotifySetup.exe
### Install must NOT be launched as an administrator
### Application installs under AppData\Roaming\Spotify (--startup-file="@APPDATA@\Spotify\Spotify.exe")
### Rename SpotifyWebHelper.exe in the same directory as Spotify.exe
### Use flag --enable=HttpUrlPassthrough<commit_msg>Update turbo.me<commit_after>### Download installer SpotifySetup.exe from http://download.spotify.com/SpotifySetup.exe
### Install must NOT be launched as an administrator
### Application installs under AppData\Roaming\Spotify (--startup-file="@APPDATA@\Spotify\Spotify.exe")
### Rename SpotifyWebHelper.exe in the same directory as Spotify.exe
### Use flag --enable=HttpUrlPassthrough

#
# Sptotify spotify.me file
# https://github.com/turboapps/turbome/tree/master/spotify
#
# Licensed under the Apache License, Version 2.0
# http://www.apache.org/licenses/LICENSE-2.0

###################################
# Meta tags
###################################

meta title="spotify"
meta namespace="spotify"
meta name="spotify"

###################################
# Pull dependency images
###################################

layer dotnet:4.0.3
using gnu/wget,powershell


###################################
# Download and install
###################################

# Set working directory
workdir c:\
cmd mkdir c:\Spotify

# Download
cmd wget --no-check-certificate --no-verbose -O C:\Spotify\SpotifyFullSetup.exe http://download.spotify.com/SpotifyFullSetup.exe

###################################
# Run bat script which installs Spotify, renames exe and kills all Spotify tasks. Replace UNC
###################################

#cmd START \\SERVERNAME\Share\test.bat WAIT

cmd "echo (C:\spotify\SpotifyFullSetup.exe /s) > Install.bat"
cmd "echo (cd %appdata%\Spotify\) >> Install.bat"
cmd "echo (ren SpotifyWebHelper.exe SpotifyWebHelper.exe_) >> Install.bat"
cmd "echo (Timeout /t 10) >> Install.bat"
cmd "echo (TASKKILL /F /IM Spotify.exe /T) >> Install.bat"
cmd "echo (Timeout /t 5) >> Install.bat"
cmd "echo (EXIT) >> Install.bat"

cmd START Install.bat WAIT

# Get version number
cmd "echo (Get-Item 'C:\Spotify\SpotifyFullSetup.exe' ).VersionInfo.ProductVersion >> GetVersion.ps1"
cmd powershell -executionpolicy remotesigned -File GetVersion.ps1
var version = last


###################################
# Environment Variables
###################################

env path="c:\Spotify"


###################################
# Clean up
###################################

cmd rmdir c:\wget /s /q
cmd del GetVersion.ps1
cmd del Install.bat
workdir @SYSDRIVE@\
cmd "rmdir @SYSDRIVE@\Spotify /s /q"

###################################
# Version
###################################

meta tag=version
meta version=version
###################################
# Startup File
###################################

# Set startup file
startup file ("@APPDATA@\Spotify\Spotify.exe")

#startup file ("cmd","/k echo spotify version: ", version)
{'fraction_non_alphanumeric': 0.2863756613756614, 'fraction_numerical': 0.004298941798941799, 'mean_word_length': 5.906392694063927, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 18, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 7, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5064427', 'n_tokens_mistral': 921, 'n_tokens_neox': 847, 'n_words': 231}