fixed attributes to avoid image bloat

This commit is contained in:
reaction.la 2022-05-23 22:29:58 +10:00
parent 579863385a
commit 2c5380472c
No known key found for this signature in database
GPG Key ID: 99914792148C8388
2 changed files with 54 additions and 60 deletions

62
.gitattributes vendored
View File

@ -36,47 +36,33 @@ Makefile text eol=lf encoding=utf-8
*.vcxproj.filters text eol=crlf encoding=utf-8 whitespace=trailing-space,space-before-tab,tabwidth=4 *.vcxproj.filters text eol=crlf encoding=utf-8 whitespace=trailing-space,space-before-tab,tabwidth=4
*.vcxproj.user text eol=crlf encoding=utf-8 whitespace=trailing-space,space-before-tab,tabwidth=4 *.vcxproj.user text eol=crlf encoding=utf-8 whitespace=trailing-space,space-before-tab,tabwidth=4
#Don't let git screw with pdf files
*.pdf -text
# Force binary files to be binary # Force binary files to be binary
*.gif -textn -diff
*.jpg -textn -diff
*.jepg -textn -diff
*.png -textn -diff
*.webp -textn -diff
############################################################################### # Archives
# Set default behavior for command prompt diff. *.7z filter=lfs diff=lfs merge=lfs -text
# *.br filter=lfs diff=lfs merge=lfs -text
# This is need for earlier builds of msysgit that does not have it on by *.gz filter=lfs diff=lfs merge=lfs -text
# default for csharp files. *.tar filter=lfs diff=lfs merge=lfs -text
# Note: This is only used by command line *.zip filter=lfs diff=lfs merge=lfs -text
###############################################################################
#*.cs diff=csharp
############################################################################### # Documents
# Set the merge driver for project and solution files *.pdf filter=lfs diff=lfs merge=lfs -text
#
# Merging from the command prompt will add diff markers to the files if there # Images
# are conflicts (Merging from VS is not affected by the settings below, in VS *.gif filter=lfs diff=lfs merge=lfs -text
# the diff markers are never inserted). Diff markers may cause the following *.ico filter=lfs diff=lfs merge=lfs -text
# file extensions to fail to load in VS. An alternative would be to treat *.jpg filter=lfs diff=lfs merge=lfs -text
# these files as binary and thus will always conflict and require user *.jpeg filter=lfs diff=lfs merge=lfs -text
# intervention with every merge. To do so, just uncomment the entries below *.pdf filter=lfs diff=lfs merge=lfs -text
############################################################################### *.png filter=lfs diff=lfs merge=lfs -text
#*.sln merge=binary *.psd filter=lfs diff=lfs merge=lfs -text
#*.csproj merge=binary *.webp filter=lfs diff=lfs merge=lfs -text
#*.vbproj merge=binary
#*.vcxproj merge=binary # Fonts
#*.vcproj merge=binary *.woff2 filter=lfs diff=lfs merge=lfs -text
#*.dbproj merge=binary
#*.fsproj merge=binary # Other
#*.lsproj merge=binary *.exe filter=lfs diff=lfs merge=lfs -text
#*.wixproj merge=binary
#*.modelproj merge=binary
#*.sqlproj merge=binary
#*.wwaproj merge=binary
############################################################################### ###############################################################################
# diff behavior for common document formats # diff behavior for common document formats

View File

@ -138,41 +138,49 @@ build the program and run unit test for the first time, launch the Visual
Studio X64 native tools command prompt in the cloned directory, then:</p> Studio X64 native tools command prompt in the cloned directory, then:</p>
<pre class="bat"><code>winConfigure.bat</code></pre> <pre class="bat"><code>winConfigure.bat</code></pre>
<p>Should the libraries change in a subsequent <code>pull</code> you will need</p> <p>Should the libraries change in a subsequent <code>pull</code> you will need</p>
<pre class="bat"><code>pull -f --recurse-submodules <pre class="bat"><code>git pull
rem you get a status message indicating libraries have been updated.
git pull -force --recurse-submodules
winConfigure.bat</code></pre> winConfigure.bat</code></pre>
<p>winConfigure.bat also configures the repository you just created to use <p>in order to rebuild the libraries.</p>
<p>The <code>--force</code> is necessary, because <code>winConfigure.bat</code> changes
many of the library files, and therefore git will abort the pull.</p>
<p><code>winConfigure.bat</code> also configures the repository you just created to use
<code>.gitconfig</code> in the repository, causing git to to implement GPG signed <code>.gitconfig</code> in the repository, causing git to to implement GPG signed
commits because <a href="./docs/contributor_code_of_conduct.html#code-will-be-cryptographically-signed" target="_blank" title="Contributor Code of Conduct">cryptographic software is under attack</a> from NSA commits because <a href="./docs/contributor_code_of_conduct.html#code-will-be-cryptographically-signed" target="_blank" title="Contributor Code of Conduct">cryptographic software is under attack</a> from NSA
entryists, and shills, who seek to introduce backdoors.</p> entryists and shills, who seek to introduce backdoors.</p>
<p>This may be inconvenient if you do not have <code>gpg</code> installed and set up.</p> <p>This may be inconvenient if you do not have <code>gpg</code> installed and set up.</p>
<p><code>.gitconfig</code> adds several git aliases:</p> <p><code>.gitconfig</code> adds several git aliases:</p>
<ol type="1"> <ol type="1">
<li><code>git lg</code> to display the gpg trust information for the last four commits. <li><code>git lg</code> to display the gpg trust information for the last four commits.
For this to be useful you need to import the repository public key For this to be useful you need to import the repository public key
<code>public_key.gpg</code> into gpg, and locally sign that key.</li> <code>public_key.gpg</code> into gpg, and locally sign that key.</li>
<li><code>git fixws</code> to standardise white space to the project standards</li> <li><code>git graph</code> to graph the commit tree with signing status</li>
<li><code>git graph</code> to graph the commit tree</li>
<li><code>git alias</code> to display the git aliases.</li> <li><code>git alias</code> to display the git aliases.</li>
</ol> </ol>
<div class="sourceCode" id="cb4"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="co"># To verify that the signature on future pulls is unchanged.</span></span> <div class="sourceCode" id="cb4"><pre class="sourceCode bash"><code class="sourceCode bash"><span id="cb4-1"><a href="#cb4-1" aria-hidden="true" tabindex="-1"></a><span class="co"># To verify that the signature on future pulls is</span></span>
<span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="ex">gpg</span> <span class="at">--import</span> public_key.gpg</span> <span id="cb4-2"><a href="#cb4-2" aria-hidden="true" tabindex="-1"></a><span class="co"># unchanged.</span></span>
<span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="ex">gpg</span> <span class="at">--lsign</span> 096EAE16FB8D62E75D243199BC4482E49673711C</span> <span id="cb4-3"><a href="#cb4-3" aria-hidden="true" tabindex="-1"></a><span class="ex">gpg</span> <span class="at">--import</span> public_key.gpg</span>
<span id="cb4-4"><a href="#cb4-4" aria-hidden="true" tabindex="-1"></a><span class="co"># We ignore the Gpg Web of Trust model and instead use</span></span> <span id="cb4-4"><a href="#cb4-4" aria-hidden="true" tabindex="-1"></a><span class="ex">gpg</span> <span class="at">--lsign</span> 096EAE16FB8D62E75D243199BC4482E49673711C</span></code></pre></div>
<span id="cb4-5"><a href="#cb4-5" aria-hidden="true" tabindex="-1"></a><span class="co"># the Zooko identity model.</span></span> <p>We ignore the Gpg Web of Trust model and instead use the Zooko
<span id="cb4-6"><a href="#cb4-6" aria-hidden="true" tabindex="-1"></a><span class="co"># We use Gpg signatures to verify that remote repository</span></span> identity model.</p>
<span id="cb4-7"><a href="#cb4-7" aria-hidden="true" tabindex="-1"></a><span class="co"># code is coming from an unchanging entity, not for</span></span> <p>We use Gpg signatures to verify that remote repository code
<span id="cb4-8"><a href="#cb4-8" aria-hidden="true" tabindex="-1"></a><span class="co"># Gpg Web of Trust. Web of Trust is too complicated</span></span> is coming from an unchanging entity, not for Gpg Web of Trust. Web
<span id="cb4-9"><a href="#cb4-9" aria-hidden="true" tabindex="-1"></a><span class="co"># and too user hostile to be workable or safe.</span></span> of Trust is too complicated and too user hostile to be workable or safe.</p>
<span id="cb4-10"><a href="#cb4-10" aria-hidden="true" tabindex="-1"></a><span class="co"># Never --sign any Gpg key related to this project. --lsign it.</span></span> <p>Never sign any Gpg key related to this project. lsign it.</p>
<span id="cb4-11"><a href="#cb4-11" aria-hidden="true" tabindex="-1"></a><span class="co"># Never check any Gpg key related to this project against a</span></span> <p>Never check any Gpg key related to this project against a public
<span id="cb4-12"><a href="#cb4-12" aria-hidden="true" tabindex="-1"></a><span class="co"># public gpg key repository. It should not be there.</span></span> gpg key repository. It should not be there.</p>
<span id="cb4-13"><a href="#cb4-13" aria-hidden="true" tabindex="-1"></a><span class="co"># Never use any email address on a gpg key related to this project</span></span> <p>Never use any email address on a gpg key related to this project
<span id="cb4-14"><a href="#cb4-14" aria-hidden="true" tabindex="-1"></a><span class="co"># unless it is only used for project purposes, or a fake email,</span></span> unless it is only used for project purposes, or a fake email, or the
<span id="cb4-15"><a href="#cb4-15" aria-hidden="true" tabindex="-1"></a><span class="co"># or the email of an enemy.</span></span></code></pre></div> email of an enemy. We dont want Gpg used to link different email
addresses as owned by the same entity, and we dont want email
addresses used to link people to the project, because those
identities would then come under state and quasi state pressure.</p>
<p>To build the documentation in its intended html form from the markdown <p>To build the documentation in its intended html form from the markdown
files, execute the bash script file <code>docs/mkdocs.sh</code>, in an environment where files, execute the bash script file <code>docs/mkdocs.sh</code>, in an environment where
<code>pandoc</code> is available. On Windows, if Git Bash and Pandoc has been <code>pandoc</code> is available. On Windows, if Git Bash and Pandoc
installed, you should be able to run a shell file in bash by double clicking on it.</p> has been installed, you should be able to run this shell
file in bash by double clicking on it.</p>
<p><a href="./RELEASE_NOTES.html">Pre alpha release</a>, which means it does not yet work even well enough for <p><a href="./RELEASE_NOTES.html">Pre alpha release</a>, which means it does not yet work even well enough for
it to be apparent what it would do if it did work.</p> it to be apparent what it would do if it did work.</p>
</body> </body>