mirror of
https://github.com/NyaMisty/docker-wine-ida.git
synced 2026-06-21 02:36:51 +08:00
Add jupyter helpers [ci skip]
This commit is contained in:
parent
31e125261a
commit
410c234782
3 changed files with 43 additions and 0 deletions
14
jupyter_helpers/ida32.json
Normal file
14
jupyter_helpers/ida32.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"argv": [
|
||||
"/opt/wine_ida_wrap.sh",
|
||||
"wine",
|
||||
"C:\\IDA\\ida.exe",
|
||||
"{connection_file}"
|
||||
],
|
||||
"display_name": "IDA32",
|
||||
"language": "python",
|
||||
"codemirror_mode": {
|
||||
"version": 3,
|
||||
"name": "ipython"
|
||||
}
|
||||
}
|
||||
14
jupyter_helpers/ida64.json
Normal file
14
jupyter_helpers/ida64.json
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"argv": [
|
||||
"/opt/wine_ida_wrap.sh",
|
||||
"wine",
|
||||
"C:\\IDA\\ida64.exe",
|
||||
"{connection_file}"
|
||||
],
|
||||
"display_name": "IDA64",
|
||||
"language": "python",
|
||||
"codemirror_mode": {
|
||||
"version": 3,
|
||||
"name": "ipython"
|
||||
}
|
||||
}
|
||||
15
jupyter_helpers/wine_ida_wrap.sh
Normal file
15
jupyter_helpers/wine_ida_wrap.sh
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#!/usr/bin/env bash
|
||||
echo $@
|
||||
connfile="${@: -1}"
|
||||
connfile=$(realpath "$connfile")
|
||||
echo "conn file linux path: $connfile"
|
||||
|
||||
mkdir -p ~/.wine/drive_c/Windows/Temp/jupyter_runtime
|
||||
cp $connfile ~/.wine/drive_c/Windows/Temp/jupyter_runtime
|
||||
|
||||
#connfile='C:\Windows\Temp\'$(basename "$connfile")
|
||||
connfile=Z:${connfile//\//\\}
|
||||
|
||||
export JUPYTER_CONNECTION=$connfile
|
||||
echo "conn file wine path: $JUPYTER_CONNECTION"
|
||||
"${@: 1:${#@}-1}" 2>&1 | tee test.log
|
||||
Loading…
Reference in a new issue