Canon EOS Webcam Utility patch guide: Difference between revisions
Formatting fix |
use ol & li html elements |
||
Line 1: | Line 1: | ||
This article will instruct how to remove the subscription requirement from the Canon EOS Webcam Utility. | This article will instruct how to remove the subscription requirement from the Canon EOS Webcam Utility. | ||
Line 7: | Line 5: | ||
== For macOS == | == For macOS == | ||
<ol> | |||
<li> Install the PKG from https://www.usa.canon.com/cameras/eos-webcam-utility </li> | |||
<li> When finished installing, navigate to <code>/Applications/EOS Webcam Utility/EOS Webcam Utility Pro.app</code></li> | |||
<li> Right click > "Show package contents"</li> | |||
<li> Right click "Contents" > "Get info", and give your user read and write permission over the directory (ensure you click "..." > "Apply to enclosed items")</li> | |||
<li> Install the <code>asar</code> CLI utility.</li> | |||
<li> Open a terminal inside of <code>EOS Webcam Utility Pro.app/Contents/Resources</code></li> | |||
<li> Extract the application by running: <code>asar e app.asar appunpk</code></li> | |||
<li> Open <code>appunpk/eos-webcam-utility/main.<abunchofnumbers>.js</code></li> | |||
<li> Find the constructor for <code>class t</code> by looking for the instance of <code>this.selectMode$</code></li> | |||
<li> In the class, define the function <code>getValue()</code> as follows... | |||
<pre> | <pre> | ||
class t extends d1 { | class t extends d1 { | ||
Line 49: | Line 45: | ||
} | } | ||
</pre> | </pre> | ||
<li> Now, search for <code>checkAuthUser() {</code>, and replace the contents of the <code>.subscribe(n => {</code> call such that it looks something like this: | |||
<pre> | <pre> | ||
this.event$.pipe(ql(2e3)).subscribe(n => { | this.event$.pipe(ql(2e3)).subscribe(n => { | ||
Line 60: | Line 53: | ||
// below the above call, there will be code that handles the "get-authen-user" event. | // below the above call, there will be code that handles the "get-authen-user" event. | ||
// replace the ternary expression: h ? e.subscriptionRegister(c, f, m) : e.subscriptionUnregister(), with: e.subscriptionRegister(c, f, m) | // replace the ternary expression: h ? e.subscriptionRegister(c, f, m) : e.subscriptionUnregister(), with: e.subscriptionRegister(c, f, m) | ||
</pre> | </pre></li> | ||
<li>edit <code>appunpk/package.json</code> by removing the line: <code>"eos-addon": "file:./build",</code></li> | |||
<li>Run <code>npm install</code></li> | |||
<li>Reverse the change from step 12.</li> | |||
<li> Ensure you are in the <code>EOS Webcam Utility Pro.app/Contents/Resources</code> directory before running: <code>asar p appunpk app.asar</code></li> | |||
</ol> | |||
You <I>should</I> now have a patched Canon EOS Webcam Utility application that does not require a subscription to use. | |||
[[Category:User guides]] | |||