Sencha Architect - Archive Project does not work correctly in Architect 4.3 - extjs

I've lately updated my environment (OS: Win 11) to Sencha Architect 4.3.
Since that I've got the following problem: when I'm going to archive a project via Menubar "File" -> "Archive Project" the files of the project folder are not being correctly placed inside the XDA-Archive-File in root directory; instead of that it's always being placed on the lowest level of the following folder-structure:
Is
C: (Folder Level 1) -> Users (Folder Level 2) -> %username% (Folder Level 3) -> AppData (Folder Level 4) -> Local (Folder Level 5) -> Temp (Folder Level 6) -> architect-export-temp.zip (Folder Level 7) -> Files (Level 8)
Should be:
[Folder Project Name] (Folder Level 1) -> Files Folder Level 2)
enter image description here
As a result double-click on the archive-file (XDA) leads to an exception:
"internal/original-fs/utils.js - line: 273Uncaught Error: ENOENT: no such file or directory, chmod 'C:\Users\Finster\AppData\Local\Temp\um6d\WRK_DASHX\C:\Users\Finster\AppData\Local\Temp\architect-export-temp.zip.arch-internal-preview.css'"
Is there an explaination for that problem or is it a bug in the latest version of Sencha Architect?

Related

WPF - Attach Folder that has many files with clickonce deployment to be installed in user C drive

I am developing a WPF application, that has a function to run the "CMD" in user pc and navigate to one folder "platform-tools" that included in the application files and execute a command.
string Request = " /c" + "cd../../&cd platform-tools& adb reboot ";
Process procc = new Process();
ProcessStartInfo procStartInfo2 = new ProcessStartInfo(#"cmd.exe", Request);
As we know, when the user install the application in his PC, the application will be located in C:\Users\""UserName\AppData\Local\Apps\2.0\"random name like: JBJHV6HG7HG"
so its difficult to know where is exactly the "platform-tools" will be installed.
My question is: is there any way i can know how to reach the platform-tools folder by my "Request" in order to rung the adb command?
or
is there a way to install the "platform-tools" in different location like "User's desktop" then i can change the "CD" command in CMD to navigate to user's desktop or C drive?
Using the ClickOnce, you won't be able to change the destination install folder due some security features and so on...
you can find out more Here
You can get the path of your executing process, and concatenate the folder name to reach the "platform-tools" folder:
//There's two ways to get the current file address from your application (in the end both ends in the same):
//There's two ways to get the current file address from your application (in the end both ends in the same):
//getting the filename by the process
var cc = Process.GetCurrentProcess().MainModule.FileName;
//getting the filename by the executing assembly
var dd = System.Reflection.Assembly.GetExecutingAssembly().Location;
//getting the path for that file name
string assemblyPath = Path.GetDirectoryName(cc);
var platformTools = string.Concat(assemblyPath, #"/platform-tools/someprocess.exe");
Process.Start(platformTools);

Emacs. Helm package. How find files in folder (not a git folder) and all subfolders?

Windows 10 (64 bit), Emacs 25.1, Helm package.
To find file (e.g. myfile.txt) in any folder (not git, not project file) I use command helm-find-file. It's work. OK.
But now I need to find myfile.txt in current folder AND all subfolders. How I can do this by helm package?
There's two ways that should work for you. In both cases, first use helm-find-files.
1) Once you're in the directory that you want to start your search from, hit C-u C-x C-d (this runs helm-browse-project recursively). Now you can type the filename that you're looking for and it should search in all subdirectories.
2) Alternatively, again from helm-find-files, hit C-c / (this effectively runs find (not sure how well this will work in Windows)).
Using helm-find-files followed by the C-c / command effectively runs helm-find which lets you type in a filename to search for from the current directory. You can also just call helm-find directly or helm-find-1 if calling from elisp code.

Script to sort folder by latest file added, find path name and install .pkg

I am attempting to create a script or series of scripts to accomplish a semi-complex task. I have already completed the first step, which is to automatically open chrome, visit a site, enter login information and download a .pkg file. What I am looking for is help on making the next part of the script, which is to open the .pkg file from my Downloads folder and install it autonomously. The file name is QuickAdd.pkg, but is renamed as QuickAdd(number).pkg, and hence I need to sort the folder by most recently added. Below is the script that I have so far devised to get the correct file path, but it seems to be very convoluted to me. Any help is greatly appreciated as I am not nearly experienced enough to complete this on my own.
Script v1:
set sourceFolder to (path to downloads folder)
tell application "Finder"
set fileList to (sort (get files of sourceFolder) by creation date)
-- This raises an error if the folder doesn't contain any files
-- Last File is the Most Recently Created --
set theFile to (last item of fileList) as alias
set thePath to POSIX path of theFile
set oProp to (properties of theFile)
set URLstr to URL of oProp
end tell
return URLstr
This works great except that is returns the file path as "file:///Users/wesleycharlap/Downloads/(filename.pkg)", and I cant seem to get any command to recognize the file path as a .pkg and install it. So I assumed the issue was the "file:///" prefix, and thus my second script.
Script v2:
use framework "Foundation"
use scripting additions
set thePath to POSIX path of (path to downloads folder as text)
set sortedList to its filesIn:thePath sortedBy:
(current application's NSURLAddedToDirectoryDateKey)
on filesIn:folderPOSIXPath sortedBy:sortKey
set keysToRequest to {current application's NSURLPathKey, ¬
current application's NSURLIsPackageKey, ¬
current application's NSURLIsDirectoryKey, ¬
sortKey}
set theFolderURL to current application's class "NSURL"'s fileURLWithPath:folderPOSIXPath
set theNSFileManager to current application's NSFileManager's defaultManager()
set listOfNSURLs to (theNSFileManager's contentsOfDirectoryAtURL:theFolderURL ¬
includingPropertiesForKeys:keysToRequest ¬
options:(current application's NSDirectoryEnumerationSkipsHiddenFiles) ¬
|error|:(missing value))
set valuesNSArray to current application's NSMutableArray's array()
repeat with oneNSURL in listOfNSURLs
(valuesNSArray's addObject:(oneNSURL's resourceValuesForKeys:keysToRequest |error|:(missing value)))
end repeat
set theNSPredicate to current application's NSPredicate's predicateWithFormat_("%K == NO OR %K == YES", current application's NSURLIsDirectoryKey, current application's NSURLIsPackageKey)
set valuesNSArray to valuesNSArray's filteredArrayUsingPredicate:theNSPredicate
set theDescriptor to current application's NSSortDescriptor's sortDescriptorWithKey:(sortKey) ascending:true
set theSortedNSArray to valuesNSArray's sortedArrayUsingDescriptors:{theDescriptor}
return (theSortedNSArray's lastObject()'s valueForKey:(current application's NSURLPathKey)) as text
end filesIn:sortedBy:
This version does indeed give me the correct file path "/Users/wesleycharlap/Downloads/(filename).pkg" but I am confused on where to go from here.
Thx for reading
Script v1 can be replaced by
set sourceFolder to (path to downloads folder)
tell application "Finder"
set allFiles to files of sourceFolder whose name extension is "pkg"
if (count allFiles) = 0 then return
set latestFile to last item of (sort allFiles by creation date)
open latestFile
end tell
It considers only .pkg files and opens the most recent one. The next step to automate the install process of the package is not trivial because Installer.app is not scriptable.

Maven pom systemProperty path to file syntax

Have follwong chunk from pom.xml:
<systemProperty>
<name>axis2.config</name>
<value>file:${project.build.directory}/../../axis2.properties</value>
</systemProperty>
what does syntax for value tag mean?
/../ - is id cd .. and forwards to parent directory?
short: ../ means parent direcory
long version:
file: specifies, that the following
content should be interpreted as a
file path.
${project.build.directory} is a
variable which will be replaced by
the runtime with the actual project
build directory
/ are folder separators
.. means parent folder
axis2.properties is the name of the
properties file
if you want to display the path for debugging purposes you might want to have a look at this:
http://www.avajava.com/tutorials/lessons/how-do-i-display-the-value-of-a-pom-xml-element.html
or
maven ant echoproperties task
Yes, it's a relative path to the project build directory, and go upper (in parent) two times.
In other words: it's the parent directory of the directory that contain your project build directory ;)
Source: Maven Properties Guide

Exclude folder under dynamic links in Installshield

Is there a way to exclude a folder that is located under a dynamic link in InstallShield?
So I have a dynamic link that starts at PATH A, and the following is a small example directory structure:
PATH A
--- PATH B
--- PATH C (which contains files)
--- PATH D (which contains files)
--- PATH E (which contains files)
--- PATH F
--- PATH G (which contains files)
Currently I have a dynamic link that starts at PATH A, includes sub directories, and uses a *.* wild card with some explicit file exclusions.
What I want to do now is to completely exclude a directory, for example completely exclude PATH F from the above example directory structure.
There is no - way.
I've been trying to do this since InstallShield 6. They're at InstallShield 15 now, and you still can't do it. If you use Subversion and are concerned about about .svn directories, you could solve the problem the way I did: have your build process do an svn export to an intermediate directory before building.

Resources