Skip to content

Commit

Permalink
update scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
StarGate01 committed Dec 10, 2023
1 parent c112e47 commit 6df13c7
Show file tree
Hide file tree
Showing 9 changed files with 94 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .vscode/jcardsim_totp.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
com.licel.jcardsim.card.applet.0.AID=A0000005272101014150455801
com.licel.jcardsim.card.applet.0.Class=com.vivokey.otp.YkneoOath
com.licel.jcardsim.card.ATR=3B8D80010031C173C8400052A51000900070
com.licel.jcardsim.vsmartcard.host=localhost
com.licel.jcardsim.vsmartcard.port=35963
33 changes: 32 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"projectName": "fido2applet",
"args": [
"${workspaceFolder}/.vscode/jcardsim_fido2.1.cfg",
"<", "${workspaceFolder}/cpipe"
// "<", "${workspaceFolder}/cpipe"
],
"classPaths": [
"${workspaceFolder}/smartcard-ci/jcardsim/target/jcardsim-3.0.5-SNAPSHOT.jar",
Expand Down Expand Up @@ -84,6 +84,37 @@
],
"console": "integratedTerminal",
"preLaunchTask": "Compile Spark"
},
{
"type": "java",
"name": "Jcardsim TOTP",
"request": "launch",
"mainClass": "com.licel.jcardsim.remote.VSmartCard",
"projectName": "totp",
"args": [
"${workspaceFolder}/.vscode/jcardsim_totp.cfg"
],
"classPaths": [
"${workspaceFolder}/smartcard-ci/jcardsim/target/jcardsim-3.0.5-SNAPSHOT.jar",
"${workspaceFolder}/applets/apex-totp/target"
],
"console": "integratedTerminal",
"preLaunchTask": "Compile TOTP",
"stepFilters": {
"classNameFilters": [
"java.*",
"javax.*",
"com.sun.*",
"sun.*",
"sunw.*",
"org.omg.*",
"com.licel.jcardsim.*",
"com.licel.jcardsim.base.*"
],
"skipSynthetics": false,
"skipStaticInitializers": false,
"skipConstructors": false
}
}
]
}
16 changes: 15 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,25 @@
"!**/applets/apex-ndef/**",
"!**/applets/apex-spark",
"!**/applets/apex-spark/**",
"!**/applets/apex-totp",
"!**/applets/apex-totp/**",
"!**/smartcard-ci/jcardsim",
"!**/smartcard-ci/jcardsim/**"
],
"java.debug.settings.exceptionBreakpoint.skipClasses": [
"$JDK",
"$Libraries",
"com.licel.jcardsim.*",
"com.licel.jcardsim.base.*"
],
"java.debug.settings.stepping.skipClasses": [
"$JDK",
"$Libraries",
"com.licel.jcardsim.*",
"com.licel.jcardsim.base.*"
],
"java.debug.settings.onBuildFailureProceed": true,
"java.format.settings.url": "eclipse-formatter.xml",
"java.debug.settings.showHex": false,
"java.debug.settings.showHex": true,
"java.configuration.updateBuildConfiguration": "interactive"
}
30 changes: 29 additions & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
},
"group": {
"kind": "build",
"isDefault": true
"isDefault": false
},
"problemMatcher": []
},
Expand All @@ -83,6 +83,22 @@
},
"problemMatcher": []
},
{
"label": "Compile TOTP",
"type": "shell",
"command": "JAVA_HOME=$JAVA_HOME_JDK8 ant",
"options": {
"cwd": "${workspaceFolder}/applets/apex-totp",
"env": {
"JC_HOME": "${workspaceFolder}/applets/apex-totp/oracle_javacard_sdks/jc304_kit"
}
},
"group": {
"kind": "build",
"isDefault": false
},
"problemMatcher": []
},
{
"label": "Clean FIDO2",
"type": "shell",
Expand Down Expand Up @@ -126,6 +142,12 @@
"command": "rm -rf ${workspaceFolder}/applets/apex-spark/target",
"problemMatcher": []
},
{
"label": "Clean TOTP",
"type": "shell",
"command": "rm -rf ${workspaceFolder}/applets/apex-totp/target",
"problemMatcher": []
},
{
"label": "Document NDEF",
"type": "shell",
Expand Down Expand Up @@ -196,6 +218,12 @@
"type": "shell",
"command": "${workspaceFolder}/.vscode/setup_ndef.sh",
"problemMatcher": [],
},
{
"label": "Setup TOTP",
"type": "shell",
"command": "${workspaceFolder}/.vscode/setup_totp.sh",
"problemMatcher": [],
}
]
}
2 changes: 1 addition & 1 deletion applets/apex-totp
4 changes: 4 additions & 0 deletions scripts/clean/apex-spark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

cd /app/src/applets/apex-spark
rm -rf target
2 changes: 1 addition & 1 deletion scripts/compile/FIDO2Applet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@

mkdir -p /app/src/bin
cd /app/src/applets/FIDO2Applet
JC_HOME=/app/sdks/jc304_kit ./gradlew -PPackageID='A0:00:00:06:47:2F:00:01' -PApplicationID='A0:00:00:06:47:2F:00:01:01' buildJavaCard classes
JC_HOME=/app/sdks/jc304_kit ./gradlew -PPackageID=A0000006472F0001 -PApplicationID=A0000006472F000101 buildJavaCard classes
cp /app/src/applets/FIDO2Applet/build/javacard/*.cap /app/src/bin/
6 changes: 6 additions & 0 deletions scripts/compile/apex-spark.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

mkdir -p /app/src/bin /app/src/applets/apex-spark/target
cd /app/src/applets/apex-spark
JC_HOME=/app/sdks/jc305u3_kit ant
cp /app/src/applets/apex-spark/target/*.cap /app/src/bin/

0 comments on commit 6df13c7

Please sign in to comment.