Skip to content

Commit

Permalink
revert file name hack
Browse files Browse the repository at this point in the history
  • Loading branch information
RDMurray committed Oct 4, 2022
1 parent 665cbb7 commit a31b5cb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 4 additions & 4 deletions installer/osara.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ FunctionEnd
Section "OSARA plug-in" SecPlugin
SectionIn RO
SetOutPath "$INSTDIR\UserPlugins"
File "..\build\x86\reaper_z_osara32.dll"
File "..\build\x86\reaper_osara32.dll"
; Installing the 64 bit dll on a 32 bit system causes an error when REAPER starts up.
; However, it's fine on a 64 bit system even with 32 bit REAPER.
${If} ${RunningX64}
File "..\build\x86_64\reaper_z_osara64.dll"
File "..\build\x86_64\reaper_osara64.dll"
${EndIf}
SetOutPath "$INSTDIR\KeyMaps"
File /oname=OSARA.ReaperKeyMap "..\config\windows\reaper-kb.ini"
Expand Down Expand Up @@ -116,8 +116,8 @@ Section "Replace existing key map with OSARA key map" SecKeyMap
SectionEnd

Section "Uninstall"
Delete "$INSTDIR\..\UserPlugins\reaper_z_osara32.dll"
Delete "$INSTDIR\..\UserPlugins\reaper_z_osara64.dll"
Delete "$INSTDIR\..\UserPlugins\reaper_osara32.dll"
Delete "$INSTDIR\..\UserPlugins\reaper_osara64.dll"
Delete "$INSTDIR\..\KeyMaps\OSARA.ReaperKeyMap"
Delete "$INSTDIR\uninstall.exe"
RMDir "$INSTDIR"
Expand Down
4 changes: 1 addition & 3 deletions src/archBuild_sconscript
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ else: # Mac
"config.rc",
[[php, "include/WDL/WDL/swell/swell_resgen.php", "$SOURCE"]])
env.Depends("reaper_osara.cpp", [res, dialogRes])
env.Depends("reaper_osara.cpp", res)
keymapFile = '#config/mac/reaper-kb.ini'

def addExternalSources(dir, files):
Expand All @@ -139,7 +138,6 @@ addExternalSources("#include/fmt/src", ("format.cc", "os.cc"))
env.Command('osara_keymap.h', keymapFile, buildKeymapHeader)

env.SharedLibrary(
#Hack: Load osara after sws to allow the keyboard shortcuts to be initialized
target="reaper_z_osara%s" % env["libSuffix"],
target="reaper_osara%s" % env["libSuffix"],
source=sources, LIBS=libs,
)

0 comments on commit a31b5cb

Please sign in to comment.