Skip to content

Instantly share code, notes, and snippets.

@ohac
Created December 15, 2018 02:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ohac/af00c6fc64478a3d280b63468652dbd6 to your computer and use it in GitHub Desktop.
Save ohac/af00c6fc64478a3d280b63468652dbd6 to your computer and use it in GitHub Desktop.
#!/bin/bash
export WINEPREFIX=$HOME/.wine64a
export NADIR=$WINEPREFIX/drive_c/Program\ Files/Native\ Instruments/Native\ Access
export NA=$NADIR/Native\ Access.exe
export DATETIME=`date +%Y%m%d_%H%M%S`
export DELTAFILE=~/na.xdelta
xdelta delta -0 -n -s=8 "$NA.orig" "$NA.new" "$DELTAFILE"
xdelta info "$DELTAFILE"
#!/bin/bash
export WINEPREFIX=$HOME/.wine64a
export NADIR=$WINEPREFIX/drive_c/Program\ Files/Native\ Instruments/Native\ Access
export NA=$NADIR/Native\ Access.exe
export DATETIME=`date +%Y%m%d_%H%M%S`
export DELTAFILE=~/na.xdelta
cp -f "$NA" "$NA.orig.$DATETIME"
xdelta patch "$DELTAFILE" "$NA" "$NA.new.$DATETIME"
cp -f "$NA.new.$DATETIME" "$NA"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment