fix docker for tauri app
This commit is contained in:
@@ -53,6 +53,7 @@ COPY tsconfig.base.json ./
|
||||
COPY tauri_app ./tauri_app
|
||||
COPY tauri_app/docker/build-android-apk.sh /usr/local/bin/build-android-apk
|
||||
|
||||
RUN chmod +x /usr/local/bin/build-android-apk
|
||||
RUN sed -i 's/\r$//' /usr/local/bin/build-android-apk \
|
||||
&& chmod +x /usr/local/bin/build-android-apk
|
||||
|
||||
CMD ["build-android-apk"]
|
||||
|
||||
@@ -20,7 +20,6 @@ tauri = { version = "2", features = [] }
|
||||
tauri-plugin-opener = "2"
|
||||
tauri-plugin-stronghold = "2"
|
||||
url = "2"
|
||||
dirs-next = "2"
|
||||
|
||||
[profile.release]
|
||||
panic = "abort"
|
||||
|
||||
BIN
tauri_app/src-tauri/icons/icon.png
Normal file
BIN
tauri_app/src-tauri/icons/icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 610 B |
@@ -122,18 +122,11 @@ fn normalize_base32_secret(secret: &str) -> String {
|
||||
.collect()
|
||||
}
|
||||
|
||||
#[cfg_attr(mobile, tauri::mobile_entry_point)]
|
||||
pub fn run() {
|
||||
tauri::Builder::default()
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.plugin(tauri_plugin_stronghold::Builder::new(|password| {
|
||||
use tauri_plugin_stronghold::stronghold::Client;
|
||||
|
||||
let salt_path = dirs_next::data_dir()
|
||||
.unwrap_or_else(std::env::temp_dir)
|
||||
.join("lendry-id-stronghold.salt");
|
||||
tauri_plugin_stronghold::stronghold::derive_key_from_password(password.as_ref(), &salt_path)
|
||||
})
|
||||
.build())
|
||||
.plugin(tauri_plugin_stronghold::Builder::new(|password| password.as_bytes().to_vec()).build())
|
||||
.invoke_handler(tauri::generate_handler![
|
||||
validate_qr_session_payload,
|
||||
validate_api_base_url,
|
||||
|
||||
Reference in New Issue
Block a user