Skip to content
This repository has been archived by the owner on Feb 1, 2024. It is now read-only.

Commit

Permalink
INIT
Browse files Browse the repository at this point in the history
  • Loading branch information
CubeWhy committed Aug 16, 2023
0 parents commit 1852fc9
Show file tree
Hide file tree
Showing 18 changed files with 676 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### IntelliJ IDEA ###
.idea/modules.xml
.idea/jarRepositories.xml
.idea/compiler.xml
.idea/libraries/
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### Eclipse ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Mac OS ###
.DS_Store
8 changes: 8 additions & 0 deletions .idea/.gitignore

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

16 changes: 16 additions & 0 deletions .idea/gradle.xml

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

17 changes: 17 additions & 0 deletions .idea/misc.xml

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

11 changes: 11 additions & 0 deletions README-CN.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# LunarLogin

Lunar客户端外置登录工具

## 使用

1. 运行 `java -jar LunarLogin-fatjar.jar`
2. 浏览器中打开 https://127.0.0.1:8080/
3. 点击登录
4. 将token链接粘贴进输入框中, 然后点击提交
5. 在游戏内点击Login with Microsoft
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# LunarLogin

[Read in Chinese](README-CN.md)

LunarClient login tool

## Using

1. do `java -jar LunarLogin-fatjar.jar`
2. Open https://127.0.0.1:8080/en in your browser
3. Click the link to login
4. Put the token URL into the input field and click to submit
5. Click Login with Microsoft in your game
53 changes: 53 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
plugins {
id 'java'
id "com.github.johnrengelman.shadow" version "6.1.0"
}

group = 'org.cubewhy'
version = '1.0-SNAPSHOT'

configurations {
include
implementation.extendsFrom(include)
}

repositories {
maven { url = "https://repo.lunarcn.top/repository/maven-public/" }
mavenCentral()
}

dependencies {
include 'org.cubewhy:LunarLauncherLib:1.3-20230816.062444-1'

testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}

test {
useJUnitPlatform()
}

shadowJar {
archiveClassifier.set("fatjar")
configurations = [project.configurations.include]
duplicatesStrategy DuplicatesStrategy.EXCLUDE

exclude "native-binaries/**"

exclude "LICENSE.txt"

exclude "META-INF/maven/**"
exclude "META-INF/versions/**"

exclude "org/junit/**"
}

jar {
manifest {
attributes(
"Main-Class": "org.cubewhy.LunarLogin"
)
}
}

jar.dependsOn(shadowJar)
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Wed Aug 16 14:08:07 CST 2023
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Loading

0 comments on commit 1852fc9

Please sign in to comment.