Jump to content
Ketarin forum

Recommended Posts

Changes Beta 1:

  • Fixed FH version detection
  • Fixed: Results of regex from variable are not highlighted
  • Fixed: Importing multiple applications seems to only import one application
  • Fixed potential ArgumentOutOfRangeException in RequiresDownload()
  • Added padleft/padright functions

Beta 2:

  • Added command line options for downloading a specific category or application
  • Allow compare with SHA512 and SHA256 hash values
  • Fixed: "formatfilesize" doesn't format file sizes > 2GB

Beta 3

  • Made TLS 1.2 connections work

Beta 4

  • Added additional log message
  • Fixed crash in segmented downloder

Final (1.8.9):

  • All requests now send a valid HTTP accept header by default
Link to post
Share on other sites
  • Replies 58
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Nevermind. I don't know what changed, but I reverted to 1.8.7 as a test, and that one took just as long to open. I then created (and subsequently deleted) a new app. Closed Ketarin, overwrote the app with the beta files again, relaunched and it opened right up. 

Link to post
Share on other sites

Any ideas, what may cause this in latest beta?

 

Check at the path of one app.

It actually is in correct location (And has correct naming), but Ketarin displays just filename without path and adds version number to that name as well.

Tried to remove it and re-import it, re-downloaded it forcibly, nothing changed...  :blink:

 

That column is derived from {file} variable.

 

Capture.png

 

XML, itself:

<?xml version='1.0' encoding='utf-8'?>
<Jobs>
  <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="9e2df175-5c1c-49cb-980c-ccb39f3a9887">
    <Category>Development</Category>
    <WebsiteUrl>https://git-for-windows.github.io/</WebsiteUrl>
    <UserAgent>{UserAgent}</UserAgent>
    <UserNotes />
    <LastFileSize>37555624</LastFileSize>
    <LastFileDate>2017-04-05T18:52:49+03:00</LastFileDate>
    <IgnoreFileInformation>false</IgnoreFileInformation>
    <DownloadBeta>Default</DownloadBeta>
    <DownloadDate>2015-11-16T00:46:30</DownloadDate>
    <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
    <VariableChangeIndicator>version</VariableChangeIndicator>
    <HashVariable />
    <HashType>None</HashType>
    <CanBeShared>false</CanBeShared>
    <ShareApplication>false</ShareApplication>
    <ExclusiveDownload>false</ExclusiveDownload>
    <HttpReferer />
    <SetupInstructions>
      <SetupInstruction xsi:type="StartProcessInstruction">
        <EnvironmentVariables />
        <FileName>{file}</FileName>
        <Parameters>/verysilent /norestart</Parameters>
        <WaitForExit>true</WaitForExit>
      </SetupInstruction>
    </SetupInstructions>
    <Variables>
      <item>
        <key>
          <string>version</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>{tag:regexreplace:.windows:}</TextualContent>
            <Name>version</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>tag</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>tree/v(.+?)"</Regex>
            <Url>https://github.com/git-for-windows/git/releases/latest</Url>
            <Name>tag</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>file</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex><td>(Git+.*?64.*?\.exe)</td></Regex>
            <Url>https://github.com/git-for-windows/git/releases/latest</Url>
            <TextualContent />
            <Name>file</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>download</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>https://github.com/git-for-windows/git/releases/download/v{tag}/{file}</TextualContent>
            <Name>download</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>src</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>HomePage</TextualContent>
            <Name>src</Name>
          </UrlVariable>
        </value>
      </item>
    </Variables>
    <ExecuteCommand />
    <ExecutePreCommand />
    <ExecuteCommandType>Batch</ExecuteCommandType>
    <ExecutePreCommandType>Batch</ExecutePreCommandType>
    <SourceType>FixedUrl</SourceType>
    <PreviousLocation>\\SYNO\download\Installers\Development\Git for Windows (x64).exe</PreviousLocation>
    <DeletePreviousFile>true</DeletePreviousFile>
    <Enabled>true</Enabled>
    <FileHippoId />
    <LastUpdated>2017-04-24T23:23:45.0465449+03:00</LastUpdated>
    <TargetPath>{path}\{category}\{appname}.{url:ext}</TargetPath>
    <FixedDownloadUrl>{download}</FixedDownloadUrl>
    <Name>Git for Windows (x64)</Name>
  </ApplicationJob>
</Jobs>
Link to post
Share on other sites

Well, your "file" variable is "<Regex><td>(Git+.*?64.*?\.exe)</td></Regex>" sooo I don't think there is anything wrong with that behaviour.

 

Yes, but shouldnt it be overwritten by 

{path}\{category}\{appname}.{url:ext}

defined as save to file?

And why such approach works for all the other apps, but not for this specific one?  :blink:

 

EDIT: Got it, I'm an idiot, for some reason I used variable {file} instead of usual {fileurl} for this App, overwriting Ketarin internal variable {file}  :P

Link to post
Share on other sites

Feature request (upvote here!): hey flo, it would be very useful in situations like this if invalid characters in a URL (such as carriage returns and line feeds) and URLs that failed other sanity checks (like being over 4k in length, have no protocol, or no domain) had a persistent visual indicator when updating, editing, or saving the app profile. Something to indicate an invalid URL is being used. Perhaps the specific variable, or URL or filehippo ID fields have a reddish background, a new status icon with a broken globe, or something similar.

Link to post
Share on other sites
  • 2 weeks later...
On 9.5.2017 at 10:52 PM, floele said:

Can you provide more details on how to reproduce the issue? Otherwise don't expect it to be fixed ;)

What kind of details do you need?

I had this problem last night while performing an update of my applications. The processor had a load of 95% over a period of about 30 seconds during the full update. After that, the processor load was normal again.  I've tested it on two other computers. The problem with the high processor load also occurred on my second Windows 7 system. On my Windows 10 system everything works without problems.

Link to post
Share on other sites

Maybe you can narrow it down to a specific application and then send it to me?

Currently I can only think of issues with regular expressions maybe. They can become quite slow in some cases, but that's nothing I could change anyway.

Link to post
Share on other sites
  • 3 weeks later...

Inkscape and all Inkscape PlugIns for example. The download attempt terminates with the message:

Quote

The request was aborted: Could not create SSL/TLS secure channel.

During the download attempt, the CPU usage increases continuously and drops immediately as soon as Ketarin jumps to the next app.

Link to post
Share on other sites

 

It all worked great, until the website switched to HTTPS....

<?xml version='1.0' encoding='utf-8'?>
<Jobs>
  <ApplicationJob xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Guid="5ac4c057-311c-4b51-8067-dd51ba993f15">
    <Category>Graphic Tools</Category>
    <WebsiteUrl>http://www.inkscape.org/?lang=de</WebsiteUrl>
    <UserAgent>{mozilla}</UserAgent>
    <UserNotes />
    <LastFileSize>75408268</LastFileSize>
    <LastFileDate>2017-02-16T19:12:10.03125</LastFileDate>
    <IgnoreFileInformation>false</IgnoreFileInformation>
    <DownloadBeta>Default</DownloadBeta>
    <DownloadDate xsi:nil="true" />
    <CheckForUpdatesOnly>false</CheckForUpdatesOnly>
    <VariableChangeIndicator>version</VariableChangeIndicator>
    <HashVariable />
    <HashType>None</HashType>
    <CanBeShared>true</CanBeShared>
    <ShareApplication>true</ShareApplication>
    <ExclusiveDownload>false</ExclusiveDownload>
    <HttpReferer />
    <SetupInstructions />
    <Variables>
      <item>
        <key>
          <string>appcat</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>{appname:regexreplace: \(.*\):}</TextualContent>
            <Name>appcat</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>appfile</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <TextualContent>{appname:multireplace:|:(|)| :|_|_}</TextualContent>
            <Name>appfile</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>version</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>(?&lt;=Latest stable version: Inkscape )[0-9.]{2,}</Regex>
            <Url>https://inkscape.org/en/download/windows/</Url>
            <TextualContent />
            <Name>version</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>url</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>Textual</VariableType>
            <Regex />
            <Url />
            <TextualContent>{download}</TextualContent>
            <Name>url</Name>
          </UrlVariable>
        </value>
      </item>
      <item>
        <key>
          <string>download</string>
        </key>
        <value>
          <UrlVariable>
            <RegexRightToLeft>false</RegexRightToLeft>
            <VariableType>RegularExpression</VariableType>
            <Regex>(https[^"]*x64.msi)</Regex>
            <PostData>r=http%3a%2f%2fsourceforge.net%2fprojects%2finkscape%2ffiles%2flatest%2fdownload%3f_test%3dgoal</PostData>
            <Url>http://inkscape.org/en/download/windows/</Url>
            <TextualContent>{ts:urldecode:replace:7z:exe}</TextualContent>
            <Name>download</Name>
          </UrlVariable>
        </value>
      </item>
    </Variables>
    <ExecuteCommand>echo %date% - %time% // {appname} v{version} &gt;&gt; "{file:directory}"\history.txt</ExecuteCommand>
    <ExecutePreCommand />
    <ExecuteCommandType>Batch</ExecuteCommandType>
    <ExecutePreCommandType>Batch</ExecutePreCommandType>
    <SourceType>FixedUrl</SourceType>
    <PreviousLocation>P:\KETARIN\Downloads\Graphic Tools\Inkscape\Inkscape_Setup_64-bit_v0.92.1.msi</PreviousLocation>
    <DeletePreviousFile>true</DeletePreviousFile>
    <Enabled>true</Enabled>
    <FileHippoId />
    <LastUpdated>2017-02-16T19:12:10.03125</LastUpdated>
    <TargetPath>{downloads}\{category}\{appcat}\{appfile}v{version}.{url:ext}</TargetPath>
    <FixedDownloadUrl>{url}</FixedDownloadUrl>
    <Name>Inkscape (Setup 64-bit)</Name>
  </ApplicationJob>
</Jobs>

 

Link to post
Share on other sites
  • floele unpinned this topic

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.