I want to install my program and add some data to other directories without deleting those directories, but installer, created by bynarycreator, wants to delete the directories before copying the new data.
Manually, I just copy the directories to the home directory, but the installer wants to remove all data from the directories.
/home/Desktop
/home/CompanyName
/home/Work
Related
I change the code in repo carbon-apimgt, and i run command "mvn clean install -Dmaven.test.skip=true" , I get a jar from target, what's next to apply this change?
Plugins directory is where we keep all the jars of components that are used in the product. Patches directory is used to track the changes done to each jar. What it does is, when you add a directory (eg: patch0001/) and add a jar to this new directory (eg: patch0001/org.wso2.carbon.apimgt.api_9.0.174.jar), this will replace the same-named jar that is found in the plugins directory.
Before this replacement, the server will first backup all the jars that are found in the plugins directory to a new folder patch0000 inside the patch folder.
At each startup, server will first apply the jars in the patch0000 directory and start replacing the jars by increasing the counter of each patch folder. (eg: patch0000, then patch0001, patch0002 up to patch9999).
This is the difference between the plugins directory and patch directory. If you replace a jar in the plugins directory, this is not a backward compatible change. However, if you replace a jar using this patch mechanism, whenever you remove the patch0001 directory from the system, this change will be reverted and the original jar will be preserved.
How I can avoid creating folders like Controller, Entity and so on inside of src directory when I'm running composer install as I'm using different folder structure in my application and it's annoying to delete that folders each time I run composer install by the first time on some machine
These folders are created by different flex recipes ONCE.
Example for symfony/framework-bundle:
https://github.com/symfony/recipes/blob/master/symfony/framework-bundle/4.2/manifest.json#L8
After successful installation these changes are tracked into symfony.lock file.
Do you have that file? It needs to be added to VCS like composer.json/composer.lock
Then delete the unneeded folders from filesystem. They should not be created again.
Source:
https://github.com/symfony/flex/issues/419
I have a project and it has a lot of directories containing .dll files. Now I want to ignore all files having .dll extension from all directory. I have .gitignore file in root directory.I tried many combinations but none seems to work.
Please help
Just use
*.dll
That will ignore all .dll files recursively, in all folders.
Ignoring files
From time to time, there are files you don't want Git to check in to GitHub. There are a few ways to tell Git which files to ignore.
Create a local .gitignore
If you create a file in your repository named .gitignore, Git uses it to determine which files and directories to ignore, before you make a commit.
A .gitignore file should be committed into your repository, in order to share the ignore rules with any other users that clone the repository.
GitHub maintains an official list of recommended .gitignore files for many popular operating systems, environments, and languages in the github/gitignore public repository.
In Terminal, navigate to the location of your Git repository.
Enter touch .gitignore to create a .gitignore file.
The Octocat has a Gist containing some good rules to add to this file.
If you already have a file checked in, and you want to ignore it, Git will not ignore the file if you add a rule later. In those cases, you must untrack the file first, by running the following command in your terminal:
git rm --cached FILENAME
Create a global .gitignore
You can also create a global .gitignore file, which is a list of rules for ignoring files in every Git repository on your computer. For example, you might create the file at ~/.gitignore_global and add some rules to it.
Open Terminal.
Run the following command in your terminal:git config --global core.excludesfile ~/.gitignore_global
Using Qt Creator IDE and C++ code I created an app and put the file Qt_Calculator.exe into a folder named Result on my Windows desktop. I used Qt Installer Framework 2.01 to make an installer for my app.
I used a CMD command as below:
C:\Users\Abbasi\Desktop\package_directory\packages\com.vendor.product\data>
C:\Qt\QtIFW2.0.1\bin\binarycreator.exe -c
C:\Users\Abbasi\Desktop\package_directory\config\config.xml -p
C:\Users\Abbasi\Desktop\package_directory\packages
C:\Users\Abbasi\Desktop\Result\Qt_Calculator.exe
I have a package_directory folder that contains this.
The config folder has a config.xml that contains this.
The packages folder has a com.vendor.product folder that in turn it also has two folders, data and meta. The data folder contains this.
The meta folder has four files: installscript.qs, License.txt, package.xml and pageform.ui
The package.xml contains this.
And installscript.qs this.
By installscript.qs I want to create an installer so that it can be installed in C:\ProgramFiles folder and creates a shortcut of the app on my desktop.
It doesn't work well and I should change the code inside installscript.qs but don't know what code should be added/removed so that the installer works that way.
Have you ever used Qt Installer Framework to create an installer?
Thanks in advance.
I want to remove the meteor installation from my meteor project directory while keeping my source code intact, so that I can archive the project without the installed packages. I also want the package configuration to be retained in the archive so that I can re-install the project without having to re-add and re-remove the packages again.
How do I do this?
Meteor already creates a .gitignore file for you. That file tells you everything that should be archived. So you can simple look at that file and only archive that (either by deleting everything else, or just writing a script that reads the .gitignore file and interprets it). Alternatively, of course, you could just add everything to git (in which case git will interpret the .gitignore file for you), and then create an archive from the git repo.
Of course, that .gitignore file only excludes .meteor/local, so as Kyll already said, you could just delete that folder.