Skip to content

Commit 6b7c790

Browse files
authored
fix - windows install (#50)
* fix - windows install * feat - add tests * feat - add tests * feat - add tests * feat - add tests * feat - add tests * fix - windows script * fix - windows script * feat - scoop * feat - scoop * FIX - goreleaser * FIX - README
1 parent 7bf96bb commit 6b7c790

File tree

3 files changed

+27
-18
lines changed

3 files changed

+27
-18
lines changed

.goreleaser.yml

+13-4
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,19 @@ brews:
4343
name: homebrew-assemblyai
4444
commit_author:
4545
name: assemblyai
46-
email: [email protected]_install
47-
# post_install: |
48-
# etc.install puts "Welcome to AssemblyAI CLI"
49-
# system "assemblyai", "welcome", "-i", "-v={{ .Tag }}", "-m=brew"
46+
47+
48+
scoop:
49+
bucket:
50+
owner: assemblyai
51+
name: scoop-assemblyai
52+
homepage: "https://www.assemblyai.com/"
53+
commit_msg_template: "Scoop formula update for {{ .ProjectName }} version {{ .Tag }}"
54+
description: "A quick and easy way to test assemblyAI's transcription features on your terminal"
55+
license: "Apache 2.0"
56+
commit_author:
57+
name: assemblyai
58+
5059

5160
checksum:
5261
name_template: 'checksums.txt'

README.md

+13-4
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,21 @@ If you don't have Homebrew installed, or are running Linux:
3131

3232
### Windows
3333

34-
The CLI is available on Windows:
34+
The CLI is available on Windows either via Scool or by script.
3535

36-
```bash
36+
Via Scoop:
37+
38+
```powershell
39+
scoop bucket add assemblyai https://github.com/assemblyai/scoop-assemblyai.git
40+
scoop install assemblyai/assemblyai
41+
````
42+
43+
Or via PowerShell as an administrator:
44+
45+
```powershell
3746
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
38-
iex "$(curl https://raw.githubusercontent.com/AssemblyAI/assemblyai-cli/main/install.ps1)"
39-
New-Alias -Name assemblyai -Value C:\\'./Program Files\'/AssemblyAI/assemblyai.exe
47+
irm https://raw.githubusercontent.com/AssemblyAI/assemblyai-cli/main/install.ps1 | iex
48+
New-Alias -Name assemblyai -Value $Env:Programfiles/AssemblyAI/assemblyai.exe
4049
```
4150

4251
## Getting started

install.ps1

+1-10
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,4 @@ if (!(Test-Path $INSTALL_DIR)) {
3636
$TARGET = $INSTALL_DIR + "/" + $FILE_BASENAME + ".exe"
3737
Copy-Item $BINARY $TARGET -Force
3838

39-
$argList = @(
40-
"welcome"
41-
"-i"
42-
"-o=windows"
43-
"-a=" + $ARCH
44-
"-m=curl"
45-
"-v=" + $VERSION
46-
)
47-
48-
Start-Process -FilePath $TARGET -ArgumentList $argList -Wait -NoNewWindow
39+
Start-Process -FilePath $TARGET -ArgumentList "welcome -i -o=windows -m=curl -v=$VERSION -a=$ARCH" -Wait -NoNewWindow

0 commit comments

Comments
 (0)