Skip to content

Commit

Permalink
Sign jars
Browse files Browse the repository at this point in the history
  • Loading branch information
rubensworks committed Nov 4, 2017
1 parent 0d3e381 commit ecef934
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ repo/*
*.ipr
*.iws
out/*
keystore.jks

# Ignore mac-specific file(s)
.DS_Store
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ env:
global:
- TERM=dumb

before_install: openssl aes-256-cbc -K $encrypted_0c9cfa39ea8e_key -iv $encrypted_0c9cfa39ea8e_iv -in keystore.jks.enc -out keystore.jks -d
install: ./gradlew setupCIWorkspace -S
script: ./gradlew build -S

Expand Down
1 change: 1 addition & 0 deletions build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ minecraft_version=1.12.2
forge_version=14.23.0.2491
mcp_mappings_version=snapshot_20170926
release_type=release
fingerprint=bd0353b3e8a2810d60dd584e256e364bc3bedd44

waila_version=1.7.0-B3_1.9.4
crafttweakerapi_version=4.0.6.261
Expand Down
14 changes: 14 additions & 0 deletions gradle/dev.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
task signJar(type: SignJar, dependsOn: reobfJar) {
onlyIf {
System.getenv().SIGN_KEYSTORE
}

keyStore = System.getenv().SIGN_KEYSTORE
alias = System.getenv().SIGN_ALIAS
storePass = System.getenv().SIGN_STOREPASS
keyPass = System.getenv().SIGN_KEYPASS
inputFile = jar.archivePath
outputFile = jar.archivePath
}
sourceJar.dependsOn signJar

task deobfJar(type: Jar) {
from sourceSets.main.output
classifier = 'deobf'
Expand Down
1 change: 1 addition & 0 deletions gradle/forge.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ minecraft {
replace "@MC_VERSION@", project.config.minecraft_version
replace "@FORGE_VERSION@", project.config.forge_version
replace "@BUILD_NUMBER@", project.buildnumber
replace "@FINGERPRINT@", project.config.fingerprint

// the mappings can be changed at any time, and must be in the following format.
// snapshot_YYYYMMDD snapshot are built nightly.
Expand Down
Binary file added keystore.jks.enc
Binary file not shown.
5 changes: 3 additions & 2 deletions src/main/java/org/cyclops/cyclopscore/CyclopsCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@
useMetadata = true,
version = Reference.MOD_VERSION,
dependencies = Reference.MOD_DEPENDENCIES,
guiFactory = "org.cyclops.cyclopscore.GuiConfigOverview$ExtendedConfigGuiFactory"
guiFactory = "org.cyclops.cyclopscore.GuiConfigOverview$ExtendedConfigGuiFactory",
certificateFingerprint = Reference.MOD_FINGERPRINT
)
public class CyclopsCore extends ModBaseVersionable {

Expand Down Expand Up @@ -144,4 +145,4 @@ public static void clog(Level level, String message) {
CyclopsCore._instance.log(level, message);
}

}
}
1 change: 1 addition & 0 deletions src/main/java/org/cyclops/cyclopscore/Reference.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ public final class Reference {
public static final String MOD_VERSION = "@VERSION@";
public static final String MOD_BUILD_NUMBER = "@BUILD_NUMBER@";
public static final String MOD_MC_VERSION = "@MC_VERSION@";
public static final String MOD_FINGERPRINT = "@FINGERPRINT@";
public static final String GA_TRACKING_ID = "UA-65307010-1";
public static final String VERSION_URL = "https://raw.githubusercontent.com/CyclopsMC/Versions/master/1.12/CyclopsCore.txt";

Expand Down

0 comments on commit ecef934

Please sign in to comment.