Skip to content

Commit

Permalink
Fixed linux not working. 0.0.7 => 0.0.8
Browse files Browse the repository at this point in the history
  • Loading branch information
ManeraKai committed May 14, 2023
1 parent 7391327 commit bc234f4
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "libredirect_frontends_manager",
"private": true,
"version": "0.0.7",
"version": "0.0.8",
"type": "module",
"scripts": {
"tauri": "tauri"
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "libredirect_frontends_manager"
version = "0.0.7"
version = "0.0.8"
description = "Host privacy frontends locally on your computer rather than relying on 3rd party instances"
authors = ["you"]
license = ""
Expand Down
8 changes: 0 additions & 8 deletions src-tauri/frontends.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
{
"caddy": {
"name": "Caddy",
"command_linux": "./caddy_linux_amd64",
"command_windows": "$APPLOCALDATA\\caddy\\caddy_windows_amd64.exe",
"args": [
"run"
]
},
"libreddit": {
"name": "LibReddit",
"icon": "libreddit-icon.png",
Expand Down
6 changes: 3 additions & 3 deletions src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"package": {
"productName": "Libredirect Frontends Manager",
"version": "0.0.7"
"version": "0.0.8"
},
"tauri": {
"allowlist": {
Expand Down Expand Up @@ -43,8 +43,8 @@
"all": true,
"scope": [
{
"name": "./caddy_linux_amd64",
"cmd": "./caddy_linux_amd64",
"name": "$APPLOCALDATA/caddy/caddy_linux_amd64",
"cmd": "$APPLOCALDATA/caddy/caddy_linux_amd64",
"args": true
},
{
Expand Down
4 changes: 2 additions & 2 deletions src/services/binary_frontends.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ async function run_caddy() {
}
let command
if (platform == 'win32') {
command = config['caddy'].command_windows
command = '$APPLOCALDATA\\caddy\\caddy_windows_amd64.exe'
} else if (platform == 'linux') {
command = config['caddy'].command_linux
command = '$APPLOCALDATA/caddy/caddy_linux_amd64'
}
const cmd = new shell.Command(command, ['run'], { cwd: await path.resolveResource('') })
cmd.on('error', error => {
Expand Down

0 comments on commit bc234f4

Please sign in to comment.