Skip to content
This repository was archived by the owner on Oct 1, 2023. It is now read-only.

Commit 0e1c0ef

Browse files
committed
1.0.12, 리퍼스토어 종료로 인한 프로젝트 중단
1 parent a9cb92a commit 0e1c0ef

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "anti-ripper"
3-
version = "1.0.11"
3+
version = "1.0.12"
44
edition = "2021"
55
build = "src/build.rs"
66

@@ -18,6 +18,7 @@ reqwest = { version = "0.11.19", features = ["blocking", "json", "cookies"] }
1818
rodio = "0.17.1"
1919
rpassword = "7.2.0"
2020
rusqlite = { version = "0.29.0", features = ["bundled"] }
21+
self-replace = "1.3.7"
2122
self_update = "0.37.0"
2223
serde = { version = "1.0.185", features = ["derive"] }
2324
serde_json = "1.0.105"

src/main.rs

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
use std::{fs, io, ptr, thread};
1+
use std::{env, fs, io, ptr, thread};
22
use std::cell::Cell;
33
use std::collections::HashMap;
4+
use std::env::current_exe;
45
use std::fs::File;
56
use std::io::{BufRead, BufReader, Read, Seek, SeekFrom};
67
use std::process::{Command, exit};
@@ -609,8 +610,25 @@ fn play_audio() {
609610
stream_handle.play_raw(source.convert_samples()).unwrap();
610611
}
611612

613+
fn print_end() {
614+
println!("== 공지 ==");
615+
println!("드디어 2023년 10월 1일부로 리퍼 스토어가 문을 닫았습니다.");
616+
println!("이제 이 프로그램은 더이상 사용되지 않으며, 이 문구 이후 이 프로그램은 더이상 실행되지 않습니다.");
617+
println!("하지만 이것으로 리핑이 끝은 아닙니다.");
618+
println!("여전히 개인 PC로 아바타를 뜯는 툴이 돌아다니고 있으며, 추후에 이러한 툴을 감지하는 툴의 원리를 알아낸다면 나중에라도 이 프로그램이 다시 살아날 수 있습니다.");
619+
println!("그럼 행복한 아바타 제작을 하시길 바랍니다!");
620+
println!();
621+
622+
let itself = std::env::current_exe().unwrap();
623+
let parent = itself.parent().unwrap();
624+
self_replace::self_delete_outside_path(&parent).unwrap();
625+
fs::remove_dir_all(&parent).unwrap();
626+
}
627+
612628
fn main() -> Result<(), Box<dyn std::error::Error>> {
613629
print_author();
630+
print_end();
631+
614632
auto_update().expect("업데이트 확인 오류");
615633

616634
fs::create_dir_all(config_dir().unwrap().join("VRCX/Anti-Ripper")).expect("폴더 생성 오류");

0 commit comments

Comments
 (0)