deduplicator icon indicating copy to clipboard operation
deduplicator copied to clipboard

Test Deduplicator on Windows OS

Open sreedevk opened this issue 3 years ago • 4 comments

I don't own or have access to a windows machine. If anybody does have access to a windows machine, please help out by testing deduplicator on windows.

Required Information:

  1. Benchmarks - Speed & Memory Efficiency
  2. Bug Reports

sreedevk avatar Jan 23 '23 19:01 sreedevk

I am ready to help with this. What all do you want me to test?

The-Coder-Kishor avatar Jun 04 '23 17:06 The-Coder-Kishor

@The-Coder-Kishor sorry I hadn't seen this comment. But people have reported compilation issues & path related issues on windows. could you test to see if its working as expected on windows?

sreedevk avatar Jul 19 '23 14:07 sreedevk

Is there a need to run some test commands in Windows 10? This is how I compiled a binary, everything from scratch without a previous RUST environment or any prior knowledge of rust programming. This is how I did it.

Download rustup-init.exe to init a rust toolchain(compilers) files, I used a customized target folder to follow my personal apps portable preferences, easy to copypaste to 2nd development machine. https://doc.rust-lang.org/cargo/getting-started/installation.html https://win.rustup.rs/

Use the following commands in a windows dos console(cmd.exe).

** Download a new rust toolchain environment **
Save file to "c:\apps\rust\rustup-init.exe" filename.
set CARGO_HOME=c:\apps\rust\.cargo
set RUSTUP_HOME=c:\apps\rust\.rustup
rustup-init.exe
- use x86_64-pc-windows-msvc, toolchain=stable, profile=default, modifyPath=no

** Download, compile and install a rust application to custom destination folder (--root) **
cd c:\apps\deduplicator
set CARGO_HOME=c:\apps\rust\.cargo
set RUSTUP_HOME=c:\apps\rust\.rustup
echo %CARGO_HOME% / %RUSTUP_HOME%
c:\apps\rust\.cargo\bin\rustc --version
c:\apps\rust\.cargo\bin\cargo --version
c:\apps\rust\.cargo\bin\cargo install --root "c:/apps/deduplicator" --git "https://github.com/sreedevk/deduplicator"

** Binary goes to c:\apps\deduplicator\bin\deduplicator.exe **
c:\apps\deduplicator\bin\deduplicator.exe --version
c:\apps\deduplicator\bin\deduplicator.exe --help

Folder .cargo/bin are proxies that delegate to the rustup toolchain folders. Folder .rustup/ may contain multiple rust toolchains, used by an active cargo proxy binaries. Compilation temp files go to CARGO_HOME/git, CARGO_HOME/registry folders.

Murmur avatar Mar 11 '24 10:03 Murmur

Simple test run on Windows 10 command line.

c:\apps\deduplicator\bin\deduplicator.exe --follow-links --json "c:/temp/" > "c:/temp/deduplicator-report.txt"

** file: deduplicator-report.txt **
[
  {
    "path": "\\\\?\\C:\\temp\\reply.txt",
    "hash": "8622274574994640779",
    "size": 919100
  },
  {
    "path": "\\\\?\\C:\\temp\\reply - Copy.txt",
    "hash": "8622274574994640779",
    "size": 919100
  }
]

Murmur avatar Mar 11 '24 10:03 Murmur