WIP
このPowerShellスクリプトは、2021年08月04日のVRChatのUnity2019対応用に作成したツールです。
- Unity(2018) Projectのコピーとzipファイル作成
| # フォルダ名+".zip"でzip化 | |
| Get-ChildItem ./ -Directory | Where-Object { | |
| $dirname = Split-Path $_ -Leaf | |
| $zipFile = ".\{0}.zip" -f $dirname | |
| Compress-Archive -Path $_ -DestinationPath $zipFile | |
| } |
| # VRChat用のUnityProjectを作成するPowershell | |
| # - 2020/06/14 初版 | |
| # - 2020/06/15 Powershell 5.x系対応 | |
| $SDKURL = 'https://vrchat.com/download/sdk2' | |
| $UNITY_VERSION = "2018.4.20f1" | |
| $NOWDATE = (Get-Date).ToLocalTime().ToString("yyyyMMdd-HHmmss") | |
| $PREFIX_NAME = "vrchat-" | |
| $DISPLAY_UNITYEDIER = $false |
| #!/bin/bash | |
| if [ $# -ne 1 ]; then | |
| SDK_VERSION=2 | |
| else | |
| SDK_VERSION=$1 | |
| fi | |
| SDK_URL=https://vrchat.com/download/sdk$SDK_VERSION | |
| SDK_VERSION_FILE=~/cron.shell/vrc_sdk_version$SDK_VERSION.txt |
| Get-ChildItem -Directory | ForEach-Object{ | |
| $zipFilename = "{0}-{1}.zip" -f $_.Name, ($_.LastWriteTime).ToString("yyyyMMdd_HHmmss") | |
| if(Test-Path($zipFilename)) { | |
| Write-Host "Already ZIP File :" $_.Name | |
| } else { | |
| Write-Host "ZIP Compressing : $_.Name -> $zipFilename" | |
| Compress-Archive -Path $_.FullName -DestinationPath $zipFilename -CompressionLevel Optimal | |
| } | |
| } |
git clone git@github.com:yanonono/booth-update.git
for file in `find ./booth-update -type f -name '*.html'`; do
cat $file | tr -d "\n" | sed -e "s/<[^>]*>//g" -e "s/ダウンロード商品//g" -e "s/カートに入れる//g" | sed -r -e 's/ +/ /g' >> japanese.txt
echo "\n" >> japanese.txt
done
mecab -d /usr/lib/x86_64-linux-gnu/mecab/dic/mecab-ipadic-neologd -Owakati japanese.txt -b 24576 > wakati.txt
./fasttext skipgram -input ../wakati.txt -output model -dim 300 -neg 25 -ws 8
| $originalDebugPreference = $DebugPreference | |
| $DebugPreference = "SilentlyContinue" # Continue SilentlyContinue | |
| ### read setting.json file | |
| set-variable -name SETTING_JSON_FILE -value ".\setting.json" -option constant | |
| if (Test-Path $SETTING_JSON_FILE) { | |
| $settingJson = ConvertFrom-Json -InputObject (Get-Content $SETTING_JSON_FILE -Encoding UTF8 -Raw) | |
| } | |
| else { | |
| $settingJson = [PSCustomObject] @{ |