Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test Deduplicator on Windows OS #36

Open
sreedevk opened this issue Jan 23, 2023 · 4 comments
Open

Test Deduplicator on Windows OS #36

sreedevk opened this issue Jan 23, 2023 · 4 comments
Labels
good first issue Good for newcomers help wanted Extra attention is needed

Comments

@sreedevk
Copy link
Owner

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 sreedevk added help wanted Extra attention is needed good first issue Good for newcomers labels Jan 23, 2023
@The-Coder-Kishor
Copy link

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

@sreedevk
Copy link
Owner Author

@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?

@Murmur
Copy link

Murmur commented Mar 11, 2024

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
Copy link

Murmur commented Mar 11, 2024

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
  }
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants