Update template app, maybe?
	
		
			
	
		
	
	
		
	
		
			Some checks failed
		
		
	
	
		
			
				
	
				Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
				
			
		
		
	
	
				
					
				
			
		
			Some checks failed
		
		
	
	Gitea Actions Demo / Explore-Gitea-Actions (push) Has been cancelled
				
			Signed-off-by: Martyn Ranyard <m@rtyn.berlin>
This commit is contained in:
		
							parent
							
								
									1d1790c9d4
								
							
						
					
					
						commit
						878e6db2c8
					
				
					 4 changed files with 68 additions and 64 deletions
				
			
		
							
								
								
									
										4
									
								
								template/src-tauri/.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								template/src-tauri/.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,4 @@
 | 
			
		|||
# Generated by Cargo
 | 
			
		||||
# will have compiled files and executables
 | 
			
		||||
/target/
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -1,3 +1,3 @@
 | 
			
		|||
fn main() {
 | 
			
		||||
    tauri_build::build()
 | 
			
		||||
}
 | 
			
		||||
fn main() {
 | 
			
		||||
    tauri_build::build()
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,15 +1,15 @@
 | 
			
		|||
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
 | 
			
		||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
 | 
			
		||||
 | 
			
		||||
// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
 | 
			
		||||
#[tauri::command]
 | 
			
		||||
fn greet(name: &str) -> String {
 | 
			
		||||
    format!("Hello, {}! You've been greeted from Rust!", name)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
fn main() {
 | 
			
		||||
    tauri::Builder::default()
 | 
			
		||||
        .invoke_handler(tauri::generate_handler![greet])
 | 
			
		||||
        .run(tauri::generate_context!())
 | 
			
		||||
        .expect("error while running tauri application");
 | 
			
		||||
}
 | 
			
		||||
// Prevents additional console window on Windows in release, DO NOT REMOVE!!
 | 
			
		||||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
 | 
			
		||||
 | 
			
		||||
// Learn more about Tauri commands at https://tauri.app/v1/guides/features/command
 | 
			
		||||
#[tauri::command]
 | 
			
		||||
fn greet(name: &str) -> String {
 | 
			
		||||
    format!("Hello, {}! You've been greeted from Rust!", name)
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
fn main() {
 | 
			
		||||
    tauri::Builder::default()
 | 
			
		||||
        .invoke_handler(tauri::generate_handler![greet])
 | 
			
		||||
        .run(tauri::generate_context!())
 | 
			
		||||
        .expect("error while running tauri application");
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,46 +1,46 @@
 | 
			
		|||
{
 | 
			
		||||
  "build": {
 | 
			
		||||
    "beforeDevCommand": "",
 | 
			
		||||
    "beforeBuildCommand": "",
 | 
			
		||||
    "devPath": "../src",
 | 
			
		||||
    "distDir": "../src",
 | 
			
		||||
    "withGlobalTauri": true
 | 
			
		||||
  },
 | 
			
		||||
  "package": {
 | 
			
		||||
    "productName": "{{ .Data.appName }}",
 | 
			
		||||
    "version": "{{ .Data.version }}"
 | 
			
		||||
  },
 | 
			
		||||
  "tauri": {
 | 
			
		||||
    "allowlist": {
 | 
			
		||||
      "all": false,
 | 
			
		||||
      "shell": {
 | 
			
		||||
        "all": false,
 | 
			
		||||
        "open": true
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "bundle": {
 | 
			
		||||
      "active": true,
 | 
			
		||||
      "targets": "all",
 | 
			
		||||
      "identifier": "com.{{ .Data.shortName }}-tauri.dev",
 | 
			
		||||
      "icon": [
 | 
			
		||||
        "icons/32x32.png",
 | 
			
		||||
        "icons/128x128.png",
 | 
			
		||||
        "icons/128x128@2x.png",
 | 
			
		||||
        "icons/icon.icns",
 | 
			
		||||
        "icons/icon.ico"
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    "security": {
 | 
			
		||||
      "csp": null
 | 
			
		||||
    },
 | 
			
		||||
    "windows": [
 | 
			
		||||
      {
 | 
			
		||||
        "fullscreen": false,
 | 
			
		||||
        "resizable": true,
 | 
			
		||||
        "title": "{{ .Data.appName }}",
 | 
			
		||||
        "width": 800,
 | 
			
		||||
        "height": 600
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
{
 | 
			
		||||
  "build": {
 | 
			
		||||
    "beforeDevCommand": "",
 | 
			
		||||
    "beforeBuildCommand": "",
 | 
			
		||||
    "devPath": "../src",
 | 
			
		||||
    "distDir": "../src",
 | 
			
		||||
    "withGlobalTauri": true
 | 
			
		||||
  },
 | 
			
		||||
  "package": {
 | 
			
		||||
    "productName": "{{ .Data.appName }}",
 | 
			
		||||
    "version": "{{ .Data.version }}"
 | 
			
		||||
  },
 | 
			
		||||
  "tauri": {
 | 
			
		||||
    "allowlist": {
 | 
			
		||||
      "all": false,
 | 
			
		||||
      "shell": {
 | 
			
		||||
        "all": false,
 | 
			
		||||
        "open": true
 | 
			
		||||
      }
 | 
			
		||||
    },
 | 
			
		||||
    "bundle": {
 | 
			
		||||
      "active": true,
 | 
			
		||||
      "targets": "all",
 | 
			
		||||
      "identifier": "com.{{ .Data.shortName }}-tauri.dev",
 | 
			
		||||
      "icon": [
 | 
			
		||||
        "icons/32x32.png",
 | 
			
		||||
        "icons/128x128.png",
 | 
			
		||||
        "icons/128x128@2x.png",
 | 
			
		||||
        "icons/icon.icns",
 | 
			
		||||
        "icons/icon.ico"
 | 
			
		||||
      ]
 | 
			
		||||
    },
 | 
			
		||||
    "security": {
 | 
			
		||||
      "csp": null
 | 
			
		||||
    },
 | 
			
		||||
    "windows": [
 | 
			
		||||
      {
 | 
			
		||||
        "fullscreen": false,
 | 
			
		||||
        "resizable": true,
 | 
			
		||||
        "title": "{{ .Data.appName }}",
 | 
			
		||||
        "width": 800,
 | 
			
		||||
        "height": 600
 | 
			
		||||
      }
 | 
			
		||||
    ]
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue