@@ -161,14 +161,34 @@ export function OllamaSetupOverlay({
161161 throw installError ;
162162 }
163163 } else if ( platform === 'windows' ) {
164- setInstallProgress ( 'Downloading and installing Ollama ...' ) ;
165- const command = 'Download Ollama installer ' ;
164+ setInstallProgress ( 'Opening Ollama download page ...' ) ;
165+ const command = 'Open Ollama download page ' ;
166166 const logId = onCommandLog ? onCommandLog ( command ) : '' ;
167167
168168 try {
169- await invoke ( 'install_ollama_windows' ) ;
169+ const result = await invoke ( 'install_ollama_windows' ) as string ;
170170 if ( onCommandUpdate ) {
171- onCommandUpdate ( logId , 'success' , 'Ollama installer downloaded' ) ;
171+ onCommandUpdate ( logId , 'success' , result ) ;
172+ }
173+ setInstallProgress ( result ) ;
174+ // Don't proceed with service start on Windows since user needs to manually install
175+ setIsLoading ( false ) ;
176+ return ;
177+ } catch ( installError ) {
178+ if ( onCommandUpdate ) {
179+ onCommandUpdate ( logId , 'error' , undefined , `Failed to open download page: ${ installError } ` ) ;
180+ }
181+ throw installError ;
182+ }
183+ } else if ( platform === 'linux' ) {
184+ setInstallProgress ( 'Installing Ollama via official script...' ) ;
185+ const command = 'curl -fsSL https://ollama.com/install.sh | sh' ;
186+ const logId = onCommandLog ? onCommandLog ( command ) : '' ;
187+
188+ try {
189+ const result = await invoke ( 'install_ollama_linux' ) as string ;
190+ if ( onCommandUpdate ) {
191+ onCommandUpdate ( logId , 'success' , result ) ;
172192 }
173193 } catch ( installError ) {
174194 if ( onCommandUpdate ) {
@@ -676,14 +696,16 @@ export function OllamaSetupOverlay({
676696 switch ( platform ) {
677697 case 'macos' : return 'macOS' ;
678698 case 'windows' : return 'Windows' ;
699+ case 'linux' : return 'Linux' ;
679700 default : return 'Unknown Platform' ;
680701 }
681702 } ;
682703
683704 const getInstallMethod = ( ) => {
684705 switch ( platform ) {
685706 case 'macos' : return 'Homebrew (brew install ollama)' ;
686- case 'windows' : return 'Official installer from ollama.ai' ;
707+ case 'windows' : return 'Official installer download' ;
708+ case 'linux' : return 'Official install script (curl | sh)' ;
687709 default : return 'Manual installation required' ;
688710 }
689711 } ;
0 commit comments