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 e41cff1 commit e6e4485
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -16,6 +16,7 @@ repo/*
*.ipr
*.iws
out/*
keystore.jks

# Ignore mac-specific file(s)
.DS_Store
Expand Down
5 changes: 5 additions & 0 deletions .travis.yml
Expand Up @@ -8,6 +8,8 @@ notifications:
env:
global:
- TERM=dumb

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

Expand All @@ -24,19 +26,22 @@ branches:

deploy:
- provider: script
skip_cleanup: true
script: ./gradlew curseforge -S
on:
all_branches: true
repo: CyclopsMC/IntegratedDynamics
tags: true
- provider: releases
skip_cleanup: true
api_key:
secure: Aq1SUNmakwKghY9aqwJSDR4n2u6zAUe72HdJVazTK4cM14IcafeQp33TRsToyheE45Bmn8IiXwgKxn1wYgfCymRwRCLMNCmiu91pT1lDUzs8oIifwdqd/Ai6SuJekSp0VblZUw9igneMbVgIGmCxMVdjSLmWu4Bvs8sDNTOUyY4=
on:
all_branches: true
repo: CyclopsMC/IntegratedDynamics
tags: true
- provider: script
skip_cleanup: true
script: ./gradlew uploadArchives -S
on:
all_branches: true
Expand Down
1 change: 1 addition & 0 deletions build.properties
Expand Up @@ -6,5 +6,6 @@ mcp_mappings_version=snapshot_20170926
cyclopscore_version=0.10.22-714
integrateddynamicscompat_version=1.12-1.0.0-15
release_type=release
fingerprint=bd0353b3e8a2810d60dd584e256e364bc3bedd44

commoncapabilities_version=1.12-1.4.0-140
14 changes: 14 additions & 0 deletions gradle/dev.gradle
@@ -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 apiJar(type: Jar, dependsOn: 'sourceMainJava') {
from (sourceSets.main.output) {
include "**/api/**/*"
Expand Down
1 change: 1 addition & 0 deletions gradle/forge.gradle
Expand Up @@ -56,6 +56,7 @@ minecraft {
replace "@FORGE_VERSION@", project.config.forge_version
replace "@BUILD_NUMBER@", project.buildnumber
replace "@CYCLOPSCORE_VERSION@", project.config.cyclopscore_version
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.
Expand Up @@ -86,7 +86,8 @@
useMetadata = true,
version = Reference.MOD_VERSION,
dependencies = Reference.MOD_DEPENDENCIES,
guiFactory = "org.cyclops.integrateddynamics.GuiConfigOverview$ExtendedConfigGuiFactory"
guiFactory = "org.cyclops.integrateddynamics.GuiConfigOverview$ExtendedConfigGuiFactory",
certificateFingerprint = Reference.MOD_FINGERPRINT
)
public class IntegratedDynamics extends ModBaseVersionable {

Expand Down Expand Up @@ -272,4 +273,4 @@ public static void clog(String message) {
public static void clog(Level level, String message) {
IntegratedDynamics._instance.log(level, message);
}
}
}
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-4";
public static final String VERSION_URL = "https://raw.githubusercontent.com/CyclopsMC/Versions/master/1.12/IntegratedDynamics.txt";

Expand Down

0 comments on commit e6e4485

Please sign in to comment.