Skip to content

Commit

Permalink
Fixing the rename script cos im dumb
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadeem-05 committed May 28, 2024
1 parent 00f0656 commit 7a89095
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src-tauri/py/rename.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
from sys import platform
import platform
import os


if platform == "linux" or platform == "linux2":
src_path = f'src-tauri/sidecars/apps'
dest_path = f'src-tauri/sidecars/apps-x86_64-unknown-linux-gnu'
os.rename()
src_path = 'src-tauri/sidecars/apps'
dest_path = 'src-tauri/sidecars/apps-x86_64-unknown-linux-gnu'
os.rename(src_path, dest_path)
elif platform == "darwin":
import platform
if platform.processor() == "i386":
src_path = f'src-tauri/sidecars/apps'
dest_path = f'src-tauri/sidecars/apps-x86_64-apple-darwin'
src_path = 'src-tauri/sidecars/apps'
dest_path = 'src-tauri/sidecars/apps-x86_64-apple-darwin'
os.rename(src_path, dest_path)
elif platform.processor() == "arm":
src_path = f'src-tauri/sidecars/apps'
dest_path = f'src-tauri/sidecars/apps-aarch64-apple-darwin'
src_path = 'src-tauri/sidecars/apps'
dest_path = 'src-tauri/sidecars/apps-aarch64-apple-darwin'
os.rename(src_path, dest_path)

elif platform == "win32":
Expand Down

0 comments on commit 7a89095

Please sign in to comment.